Skip to content

Commit

Permalink
chore: parallelize nupkg validation with integration tests (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
latonz authored Aug 28, 2023
1 parent b7e6e20 commit 0084deb
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true

jobs:
sample:
runs-on: ubuntu-latest
Expand All @@ -38,8 +42,6 @@ jobs:
- uses: actions/[email protected]
- run: dotnet tool restore
- run: RELEASE_VERSION="0.0.1-dev.$GITHUB_RUN_ID" ./build/package.sh
- run: dotnet meziantou.validate-nuget-package ./artifacts/*.nupkg
- run: dotnet validate package local ./artifacts/*.nupkg
- uses: actions/upload-artifact@v3
with:
name: mapperly-nupkg
Expand All @@ -49,6 +51,19 @@ jobs:
with:
name: verify-test-results
path: '**/*.received.*'
validate-package:
needs: package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
- run: dotnet tool restore
- uses: actions/download-artifact@v3
with:
name: mapperly-nupkg
path: artifacts
- run: dotnet meziantou.validate-nuget-package ./artifacts/*.nupkg
- run: dotnet validate package local ./artifacts/*.nupkg
integration-test:
needs: package
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0084deb

Please sign in to comment.