Skip to content

Commit

Permalink
Ignore nightly failures
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Oct 28, 2024
1 parent e54d3b4 commit 3b7bf55
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ jobs:
fail-fast: false
matrix:
swift-image:
- swift:5.10-noble
- swift:6.0-noble
- swiftlang/swift:nightly-main-jammy
- name: swift:5.10-noble
failure-exit-code: 99
- name: swift:6.0-noble
failure-exit-code: 99
- name: swiftlang/swift:nightly-main-jammy
# https://github.com/swiftlang/swift/issues/77242
failure-exit-code: 0
config:
- mode: "debug"
build_args: ""
Expand All @@ -27,7 +31,7 @@ jobs:

runs-on: ubuntu-latest

container: ${{ matrix.swift-image }}
container: ${{ matrix.swift-image.name }}

timeout-minutes: 30

Expand All @@ -41,8 +45,8 @@ jobs:
with:
path: .build
# e.g. 'enumerator-macro-debug-build-swiftlang/swift:nightly-6.0-jammy-Linux-c7008df8062ac4d5887ead9e59aa05829e'
key: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}"
restore-keys: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image }}-${{ runner.os }}-"
key: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image.name }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}"
restore-keys: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image.name }}-${{ runner.os }}-"

- name: Build ${{ github.event.repository.name }}
run: swift build --build-tests -c ${{ matrix.config.mode }} ${{ matrix.config.build_args }}
Expand All @@ -52,10 +56,11 @@ jobs:
uses: actions/cache/save@v4
with:
path: .build
key: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}"
key: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image.name }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}"

- name: Run tests
run: swift test --parallel -c ${{ matrix.config.mode }} ${{ matrix.config.test_args }}
run:
swift test --parallel -c ${{ matrix.config.mode }} ${{ matrix.config.test_args }} || exit ${{ matrix.swift-image.failure-exit-code }}

- name: Submit code coverage
if: matrix.config.with_codecov == 'true'
Expand Down

0 comments on commit 3b7bf55

Please sign in to comment.