Some checks failed
Pull request: build & lint / build (pull_request) Failing after 37s
28 lines
735 B
YAML
28 lines
735 B
YAML
---
|
|
name: "Pull request: build & lint"
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10.13'
|
|
- name: "Creates virtual environment"
|
|
run: make venv
|
|
- name: Activate virtualenv
|
|
run: |
|
|
source venv/bin/activate
|
|
echo PATH=$PATH >> $GITHUB_ENV
|
|
- name: Install galaxy requirements
|
|
run: ansible-galaxy install -r requirements.yml
|
|
- name: "Run YAML linting"
|
|
run: yamllint -c .yamllint.yml .
|
|
- name: "Run Ansible linting"
|
|
run: ansible-lint
|