Make all nightly CI jobs fallible.

This commit is contained in:
Sergio Benitez 2024-04-11 18:27:43 -07:00
parent 8831d47aad
commit eec5c08179
1 changed files with 12 additions and 11 deletions

View File

@ -13,34 +13,35 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
fallible: [false]
platform: platform:
- { name: Linux, distro: ubuntu-latest, toolchain: stable } - { name: Linux, distro: ubuntu-latest, toolchain: stable }
- { name: Windows, distro: windows-latest, toolchain: stable } - { name: Windows, distro: windows-latest, toolchain: stable }
- { name: macOS, distro: macOS-latest, toolchain: stable } - { name: macOS, distro: macOS-latest, toolchain: stable }
- { name: Linux, distro: ubuntu-latest, toolchain: nightly } - { name: Linux, distro: ubuntu-latest, toolchain: nightly }
test: test:
- { name: Debug, flag: } - { name: Debug }
- { name: Contrib, flag: "--contrib" }
- { name: Examples, flag: "--examples" } - { name: Examples, flag: "--examples" }
- { name: Contrib, flag: "--contrib" }
include: include:
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly } # Additional tests on Linux/stable.
- platform: { name: Linux, distro: ubuntu-latest, toolchain: stable }
test: { name: Core, flag: "--core" } test: { name: Core, flag: "--core" }
fallible: true
- platform: { name: Linux, distro: ubuntu-latest, toolchain: stable } - platform: { name: Linux, distro: ubuntu-latest, toolchain: stable }
test: { name: Release, flag: "--release" } test: { name: Release, flag: "--release" }
- platform: { name: Linux, distro: ubuntu-latest, toolchain: stable } - platform: { name: Linux, distro: ubuntu-latest, toolchain: stable }
test: { name: UI, flag: "--ui" } test: { name: UI, flag: "--ui" }
fallible: true fallible: true
- platform: { name: Linux, distro: ubuntu-latest, toolchain: nightly } # Allow tests on nightly to fail.
test: { name: UI, flag: "--ui" } - platform: { toolchain: nightly }
fallible: true fallible: true
# Use the bigger 'C:/' from the "Switch Disk" step
- platform: { name: Windows } - platform: { name: Windows }
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}" working-directory:
"C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
steps: steps:
- name: Checkout Sources - name: Checkout Sources
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Free Disk Space (Linux) - name: Free Disk Space (Linux)
if: matrix.platform.name == 'Linux' if: matrix.platform.name == 'Linux'
@ -112,7 +113,7 @@ jobs:
Get-PSDrive Get-PSDrive
- name: Run Tests - name: Run Tests
continue-on-error: ${{ matrix.fallible }} continue-on-error: ${{ matrix.fallible || false }}
working-directory: ${{ matrix.working-directory || github.workspace }} working-directory: ${{ matrix.working-directory || github.workspace }}
run: ./scripts/test.sh ${{ matrix.test.flag }} -q run: ./scripts/test.sh ${{ matrix.test.flag || '' }} -q
shell: bash shell: bash