From 5fa72bb33fe0caabf1a1accf4275b8ae600603c2 Mon Sep 17 00:00:00 2001 From: Grady Zhuo Date: Mon, 24 Jun 2024 11:56:38 +0800 Subject: [PATCH] Update swift-build-testing.yml --- .github/workflows/swift-build-testing.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift-build-testing.yml b/.github/workflows/swift-build-testing.yml index fca91b3..088ec91 100644 --- a/.github/workflows/swift-build-testing.yml +++ b/.github/workflows/swift-build-testing.yml @@ -23,9 +23,17 @@ jobs: swift-version: ${{ matrix.swift }} - uses: actions/checkout@v4 - name: Build - run: swift build -v + run: swift build -v --build-tests - name: Run tests - run: swift test -v + run: swift test -v --skip-build --enable-code-coverage + - name: Create Coverage Report + uses: sersoft-gmbh/swift-coverage-action@v4 + id: coverage-files + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }} services: # Label used to access the service container eventstoredb: