2022-10-29 19:23:33 +00:00
|
|
|
---
|
|
|
|
# Copyright (c) Ansible Project
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
# For the comprehensive list of the inputs supported by the ansible-community/ansible-test-gh-action GitHub Action, see
|
|
|
|
# https://github.com/marketplace/actions/ansible-test
|
|
|
|
|
|
|
|
name: EOL CI
|
|
|
|
on:
|
|
|
|
# Run EOL CI against all pushes (direct commits, also merged PRs), Pull Requests
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- stable-*
|
|
|
|
pull_request:
|
|
|
|
# Run EOL CI once per day (at 09:00 UTC)
|
|
|
|
schedule:
|
|
|
|
- cron: '0 9 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
sanity:
|
|
|
|
name: EOL Sanity (Ⓐ${{ matrix.ansible }})
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
ansible:
|
|
|
|
- '2.9'
|
|
|
|
- '2.10'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Perform sanity testing
|
2022-11-27 20:04:52 +00:00
|
|
|
uses: felixfontein/ansible-test-gh-action@integration-error-behavior
|
2022-10-29 19:23:33 +00:00
|
|
|
with:
|
|
|
|
ansible-core-version: stable-${{ matrix.ansible }}
|
2022-11-27 20:04:52 +00:00
|
|
|
coverage: ${{ github.event_name == 'schedule' && 'always' || 'never' }}
|
2022-10-29 19:23:33 +00:00
|
|
|
pull-request-change-detection: 'true'
|
|
|
|
testing-type: sanity
|
|
|
|
|
|
|
|
units:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: EOL Units (Ⓐ${{ matrix.ansible }})
|
|
|
|
strategy:
|
|
|
|
# As soon as the first unit test fails, cancel the others to free up the CI queue
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
ansible:
|
|
|
|
- '2.9'
|
|
|
|
- '2.10'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: >-
|
|
|
|
Perform unit testing against
|
|
|
|
Ansible version ${{ matrix.ansible }}
|
2022-11-27 20:04:52 +00:00
|
|
|
uses: felixfontein/ansible-test-gh-action@integration-error-behavior
|
2022-10-29 19:23:33 +00:00
|
|
|
with:
|
|
|
|
ansible-core-version: stable-${{ matrix.ansible }}
|
2022-11-27 20:04:52 +00:00
|
|
|
coverage: ${{ github.event_name == 'schedule' && 'always' || 'never' }}
|
2022-10-29 19:23:33 +00:00
|
|
|
pull-request-change-detection: 'true'
|
|
|
|
testing-type: units
|
|
|
|
|
|
|
|
integration:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: EOL I (Ⓐ${{ matrix.ansible }}+${{ matrix.docker }}+py${{ matrix.python }}:${{ matrix.target }})
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
ansible:
|
|
|
|
- ''
|
|
|
|
docker:
|
|
|
|
- ''
|
|
|
|
python:
|
|
|
|
- ''
|
|
|
|
target:
|
|
|
|
- ''
|
|
|
|
exclude:
|
|
|
|
- ansible: ''
|
|
|
|
include:
|
|
|
|
# 2.9
|
|
|
|
- ansible: '2.9'
|
|
|
|
docker: fedora31
|
|
|
|
python: ''
|
|
|
|
target: azp/posix/1/
|
|
|
|
- ansible: '2.9'
|
|
|
|
docker: ubuntu1804
|
|
|
|
python: ''
|
|
|
|
target: azp/posix/1/
|
|
|
|
- ansible: '2.9'
|
|
|
|
docker: default
|
|
|
|
python: '2.7'
|
|
|
|
target: azp/generic/1/
|
|
|
|
# 2.10
|
|
|
|
- ansible: '2.10'
|
|
|
|
docker: centos6
|
|
|
|
python: ''
|
|
|
|
target: azp/posix/1/
|
|
|
|
- ansible: '2.10'
|
|
|
|
docker: default
|
|
|
|
python: '3.6'
|
|
|
|
target: azp/generic/1/
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: >-
|
|
|
|
Perform integration testing against
|
|
|
|
Ansible version ${{ matrix.ansible }}
|
|
|
|
under Python ${{ matrix.python }}
|
2022-11-27 20:04:52 +00:00
|
|
|
uses: felixfontein/ansible-test-gh-action@integration-error-behavior
|
2022-10-29 19:23:33 +00:00
|
|
|
with:
|
|
|
|
ansible-core-version: stable-${{ matrix.ansible }}
|
2022-11-27 20:04:52 +00:00
|
|
|
coverage: ${{ github.event_name == 'schedule' && 'always' || 'never' }}
|
2022-10-29 19:23:33 +00:00
|
|
|
docker-image: ${{ matrix.docker }}
|
2022-11-27 20:04:52 +00:00
|
|
|
integration-continue-on-error: 'false'
|
2022-10-29 19:23:33 +00:00
|
|
|
pre-test-cmd: >-
|
|
|
|
git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git ../../community/internal_test_tools
|
|
|
|
;
|
|
|
|
git clone --depth=1 --single-branch https://github.com/ansible-collections/community.general.git ../../community/general
|
|
|
|
pull-request-change-detection: 'true'
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
target-python-version: ${{ matrix.python }}
|
|
|
|
testing-type: integration
|