-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (43 loc) · 1.33 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: lint
on:
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests
push:
branches:
- main
- stable-*
pull_request:
# Run CI once per day (at 06:00 UTC)
# This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version
# schedule:
# - cron: '0 6 * * *'
workflow_dispatch:
# To avoid conflict with shared lint task, not setting anything here
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}-${{ github.action }}
# cancel-in-progress: true
permissions:
pull-requests: write
checks: write
contents: read
jobs:
lint:
uses: delineaxpm/github-workflows/.github/workflows/lint.yml@main
secrets: inherit
ansible-lint:
name: ansible-lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: ansible-lint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter.
ansiblelint_flags: -x core playbook/*
# customize ansible lint with: https://ansible-lint.readthedocs.io/en/latest/configuring/