the-bastion/.github/workflows/tests.yml
Stéphane Lesimple 545547de6d chore: tests: no longer run consistency check by default
This is slow and almost never catched a bug, so consistency check is
still supported but will not run by default, as it is quite slow,
checking the system between each and every test. The option
--skip-consistency-check is now ignored, and a new option to enable
it has been added: --consistency-check
2024-12-24 14:46:36 +01:00

51 lines
1.9 KiB
YAML

name: Linux distros tests
on:
pull_request:
types: [labeled, synchronize]
jobs:
tests_short:
name: Short (deb12 only, w/o cc)
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'tests:short')
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: run tests inside a debian12 docker
run: tests/functional/docker/docker_build_and_run_tests.sh debian12 --no-pause-on-fail
env:
DOCKER_TTY: false
tests_long:
name: Long (multi-distros, w/o cc)
strategy:
matrix:
platform: [rockylinux9, debian12, 'opensuse15@opensuse/leap:15.6', ubuntu2404]
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'tests:long')
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: run tests inside a ${{ matrix.platform }} docker
run: tests/functional/docker/docker_build_and_run_tests.sh ${{ matrix.platform }} --no-pause-on-fail
env:
DOCKER_TTY: false
tests_full:
name: Full (multi-distros all versions, w/ cc)
strategy:
matrix:
platform: [rockylinux8, rockylinux9, debian10, debian11, debian12, 'opensuse15@opensuse/leap:15.6', ubuntu1804, ubuntu2004, ubuntu2204, ubuntu2404]
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'tests:full')
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: run tests inside a ${{ matrix.platform }} docker
run: tests/functional/docker/docker_build_and_run_tests.sh ${{ matrix.platform }} --consistency-check --no-pause-on-fail
env:
DOCKER_TTY: false