diff options
Diffstat (limited to 'ansible_collections/inspur/sm/.github')
-rw-r--r-- | ansible_collections/inspur/sm/.github/settings.yml | 5 | ||||
-rw-r--r-- | ansible_collections/inspur/sm/.github/workflows/ansible-test.yml | 52 |
2 files changed, 57 insertions, 0 deletions
diff --git a/ansible_collections/inspur/sm/.github/settings.yml b/ansible_collections/inspur/sm/.github/settings.yml new file mode 100644 index 000000000..b27b575f0 --- /dev/null +++ b/ansible_collections/inspur/sm/.github/settings.yml @@ -0,0 +1,5 @@ +# DO NOT MODIFY + +# Settings: https://probot.github.io/apps/settings/ +# Pull settings from https://github.com/ansible-collections/.github/blob/master/.github/settings.yml +_extends: ".github" diff --git a/ansible_collections/inspur/sm/.github/workflows/ansible-test.yml b/ansible_collections/inspur/sm/.github/workflows/ansible-test.yml new file mode 100644 index 000000000..f2228e999 --- /dev/null +++ b/ansible_collections/inspur/sm/.github/workflows/ansible-test.yml @@ -0,0 +1,52 @@ +name: CI +on: + pull_request: + push: + # 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 * * *' + +jobs: + sanity: + name: Sanity (${{ matrix.ansible }}) + strategy: + matrix: + ansible: + - stable-2.10 + - stable-2.11 + - stable-2.12 + - stable-2.13 + - stable-2.14 + - devel + python-version: + - '3.8' + - '3.9' + - '3.10' + exclude: + - ansible: stable-2.10 + python-version: '3.10' + - ansible: stable-2.11 + python-version: '3.10' + - ansible: stable-2.14 + python-version: '3.8' + - ansible: devel + python-version: '3.8' + runs-on: ubuntu-latest + steps: + + - name: Check out code + uses: actions/checkout@v1 + with: + path: ansible_collections/inspur/sm + + - name: Set up Python (${{ matrix.python-version }}) + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install ansible-base (${{ matrix.ansible }}) + run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check + + - name: Run sanity tests + run: ansible-test sanity --docker -v --color |