This commit is contained in:
parent
22b05889f4
commit
216beff86f
2 changed files with 36 additions and 0 deletions
35
.forgejo/workflows/lint.yml
Normal file
35
.forgejo/workflows/lint.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: ci-lint
|
||||||
|
|
||||||
|
on: # yamllint disable-line rule:truthy
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
schedule:
|
||||||
|
- cron: "20 4 * * 0"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: fedora:42 # lock to *latest stable*; rawhide/next is 'latest' tag
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install packages and ansible
|
||||||
|
run: |
|
||||||
|
echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf
|
||||||
|
dnf -yq install nodejs git pipx
|
||||||
|
pipx install ansible-core ansible-lint
|
||||||
|
ansible-galaxy collection install -r meta/requirements.yml
|
||||||
|
env:
|
||||||
|
PY_COLORS: '1'
|
||||||
|
ANSIBLE_FORCE_COLOR: '1'
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: ansible-lint
|
||||||
|
env:
|
||||||
|
PY_COLORS: '1'
|
||||||
|
ANSIBLE_FORCE_COLOR: '1'
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.ansible/**
|
Loading…
Add table
Add a link
Reference in a new issue