fix(actions): Adds actions to lint ansible and yaml
This commit is contained in:
parent
d20db64817
commit
43e7b6850d
17 changed files with 303 additions and 38 deletions
28
.gitea/workflows/on_pr.yml
Normal file
28
.gitea/workflows/on_pr.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
name: "Pull request: build & lint"
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue