should not miss late fires #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "7.0.400" | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
publish_packages: | |
needs: test | |
runs-on: ubuntu-latest | |
env: | |
ContinuousIntegrationBuild: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "6.0" | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "7.0.400" | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore --version-suffix="ci.${GITHUB_RUN_NUMBER}" | |
- name: Validate | |
run: Get-Item pkgs/*.nupkg |% { dotnet tool run dotnet-validate package local $_ } | |
shell: pwsh |