Skip to content

Commit

Permalink
Update action file and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
afxres committed Aug 3, 2024
1 parent 6347688 commit 10783f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@ jobs:
dotnet-quality: "preview"

- name: Test
run: |
cd code
dotnet restore
dotnet build
dotnet test -f net8.0 --collect:"XPlat Code Coverage;Format=lcov"
run: sh scripts/workflow-test.sh

- name: Coverage
run: |
sudo apt-get install -y lcov
mkdir -p coverage
find . -name coverage.info -exec echo -a {} \; | xargs lcov -o coverage/lcov.info
run: sh scripts/workflow-coverage.sh

- name: Coveralls
uses: coverallsapp/github-action@v2
5 changes: 5 additions & 0 deletions scripts/workflow-coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

sudo apt-get install -y lcov
mkdir -p coverage
find . -name coverage.info -exec echo -a {} \; | xargs lcov -o coverage/lcov.info
6 changes: 6 additions & 0 deletions scripts/workflow-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

cd code
dotnet restore
dotnet build
dotnet test -f net8.0 --collect:"XPlat Code Coverage;Format=lcov"

0 comments on commit 10783f7

Please sign in to comment.