Skip to content

Commit

Permalink
Update Github Actions (#343)
Browse files Browse the repository at this point in the history
* Added test to push.yml and pr.yml

* updated test.yml
  • Loading branch information
cschuchardt88 authored Nov 16, 2023
1 parent b0bd037 commit 9268e97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ on:
jobs:
pack:
uses: ./.github/workflows/pack.yml
test:
uses: ./.github/workflows/test.yml
6 changes: 4 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ env:
jobs:
pack:
uses: ./.github/workflows/pack.yml
test:
uses: ./.github/workflows/test.yml
publish:
needs: [pack]
needs: [pack, test]
runs-on: ubuntu-latest
steps:
- name: Setup .NET
Expand All @@ -44,4 +46,4 @@ jobs:
name: worknet
path: ./out
- name: Publish to Azure Artifacts
run: dotnet nuget push out/*.nupkg
run: dotnet nuget push out/*.nupkg
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
sudo apt-get install libsnappy-dev libc6-dev librocksdb-dev -y
- name: Build and Test
run: |
dotnet restore
dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore --verbosity normal --BinaryLogger:./msbuild.${{ matrix.os }}.binlog
dotnet test --configuration ${{ env.CONFIGURATION }} --no-build --verbosity normal --collect:"XPlat Code Coverage"
dotnet restore neo-express.sln
dotnet build neo-express.sln --configuration ${{ env.CONFIGURATION }} --no-restore --verbosity normal --BinaryLogger:./msbuild.${{ matrix.os }}.binlog
dotnet test neo-express.sln --configuration ${{ env.CONFIGURATION }} --no-build --verbosity normal --collect:"XPlat Code Coverage"
- name: Upload Coverage
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 9268e97

Please sign in to comment.