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 88da0d9 commit e803607
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
matrix:
swift-image:
- name: swift:5.10-noble
error-sign: "-"
continue-on-error: false
- name: swift:6.0-noble
error-sign: "-"
continue-on-error: false
- name: swiftlang/swift:nightly-main-jammy
# https://github.com/swiftlang/swift/issues/77242
error-sign: "+"
continue-on-error: true
config:
- mode: "debug"
build_args: ""
Expand All @@ -45,10 +45,8 @@ jobs:
restore-keys: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image.name }}-${{ runner.os }}-"

- name: Build ${{ github.event.repository.name }}
run:
set ${{ matrix.swift-image.error-sign }}e

swift build --build-tests -c ${{ matrix.config.mode }} ${{ matrix.config.build_args }}
continue-on-error: ${{ matrix.swift-image.continue-on-error }}
run: swift build --build-tests -c ${{ matrix.config.mode }} ${{ matrix.config.build_args }}

- name: Cache .build
if: steps.restore-cache.outputs.cache-hit != 'true'
Expand All @@ -58,10 +56,7 @@ jobs:
key: "${{ github.event.repository.name }}-${{ matrix.config.mode }}-build-${{ matrix.swift-image.name }}-${{ runner.os }}-${{ hashFiles('./Package.resolved') }}"

- name: Run tests
run:
set ${{ matrix.swift-image.error-sign }}e

swift test --parallel --enable-code-coverage -c ${{ matrix.config.mode }}
run: swift test --parallel --enable-code-coverage -c ${{ matrix.config.mode }}

- name: Submit code coverage
uses: vapor/swift-codecov-action@v0.3
Expand Down

0 comments on commit e803607

Please sign in to comment.