diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d4a6593..89897cc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: "" @@ -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' @@ -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