Skip to content

Commit

Permalink
use the official Ansible sanity action
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 25, 2024
1 parent fec100d commit 3741b9e
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@ concurrency:
cancel-in-progress: true

jobs:
sanity:
name: Sanity (Ⓐ${{ matrix.ansible }})
strategy:
matrix:
ansible:
- stable-2.15
- stable-2.16
- stable-2.17
- stable-2.18
- devel

runs-on: ubuntu-latest

steps:
# Run sanity tests inside a Docker container.
# The docker container has all the pinned dependencies that are
# required and all Python versions Ansible supports.
- name: Perform sanity testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
testing-type: sanity
pull-request-change-detection: false

build:
runs-on: ubuntu-20.04
container: ${{ matrix.container }}
Expand Down Expand Up @@ -86,9 +110,6 @@ jobs:
run: make test-other
- name: Run dist tests
run: make dist-test
- name: Run sanity tests
run: make SANITY_OPTS="--docker" sanity
if: matrix.ansible != 'v2.10.4' && matrix.ansible != 'stable-2.11'

checkmode:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3741b9e

Please sign in to comment.