Skip to content

Commit

Permalink
Split tests in CI by projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragemil committed Sep 13, 2023
1 parent acafec4 commit b1d62f2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publisher_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Test
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet test --no-restore -c Release
run: dotnet test --no-build -c Release
- name: Pack Publisher
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/publisher_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,24 @@ jobs:
run: dotnet csharpier . --check
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test \
--no-restore \
- name: Test Publisher
run: >
dotnet test
--no-build
--collect "XPlat Code Coverage"
--settings ../coverlet.runsettings
--logger trx
--results-directory ../../TestResults
working-directory: ./publisher/test/LeanPipe.Tests
- name: Test test client
run: >
dotnet test
--no-build
--collect "XPlat Code Coverage" \
--settings test/coverlet.runsettings \
--logger trx \
--results-directory TestResults
--settings ../coverlet.runsettings
--logger trx
--results-directory ../../TestResults
working-directory: ./publisher/test/LeanPipe.TestClient.Tests
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit b1d62f2

Please sign in to comment.