diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1987c88..413d267 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,7 +49,10 @@ jobs: 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 }} + run: + set ${{ matrix.swift-image.error-sign }}e + + swift build --build-tests -c ${{ matrix.config.mode }} ${{ matrix.config.build_args }} - name: Cache .build if: steps.restore-cache.outputs.cache-hit != 'true' @@ -59,9 +62,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 -c ${{ matrix.config.mode }} ${{ matrix.config.test_args }} + run: swift test --parallel -c ${{ matrix.config.mode }} ${{ matrix.config.test_args }} - name: Submit code coverage if: matrix.config.with_codecov