fix lint - checkout before action (#309)
* fix lint - checkout before action * Update tests.yml * Create .ansible-lint --------- Co-authored-by: Ashwini Mhatre <mashu97@gmail.com> Co-authored-by: Ashwini Mhatre <amhatre@redhat.com>pull/316/head
parent
0f8c4e1d45
commit
9b87f10f0d
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
profile: production
|
||||
|
||||
exclude_paths:
|
||||
- changelogs/changelog.yaml
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
name: ansible-lint
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
jobs:
|
||||
build:
|
||||
name: Ansible Lint # Naming the build is important to use it as a status check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run ansible-lint
|
||||
uses: ansible/ansible-lint@main # or version tag instead of 'main'
|
|
@ -13,8 +13,6 @@ on: # yamllint disable-line rule:truthy
|
|||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
ansible-lint:
|
||||
uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main
|
||||
changelog:
|
||||
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
|
||||
if: github.event_name == 'pull_request'
|
||||
|
@ -28,7 +26,6 @@ jobs:
|
|||
all_green:
|
||||
if: ${{ always() }}
|
||||
needs:
|
||||
- ansible-lint
|
||||
- changelog
|
||||
- integration
|
||||
- sanity
|
||||
|
@ -38,7 +35,6 @@ jobs:
|
|||
- run: >-
|
||||
python -c "assert 'failure' not in
|
||||
set([
|
||||
'${{ needs.ansible-lint.result }}',
|
||||
'${{ needs.changelog.result }}',
|
||||
'${{ needs.integration.result }}',
|
||||
'${{ needs.sanity.result }}',
|
||||
|
|
Loading…
Reference in New Issue