Bump MSTest.TestAdapter from 2.2.10 to 3.2.2 #23
Workflow file for this run
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: libNOM.collect | |
on: | |
push | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
env: | |
libNOMmap: '0.8.3' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
dotnet-quality: ga | |
# TODO: Remove when pushing libNOM.map to nuget.org | |
- name: Download libNOM.map | |
uses: Legion2/download-release-action@v2.1.0 | |
with: | |
repository: zencq/libNOM.map | |
tag: ${{ env.libNOMmap }} | |
path: nupkg | |
file: libNOM.map.${{ env.libNOMmap }}.nupkg | |
# TODO: Update to 'dotnet restore' when pushing libNOM.map to nuget.org | |
- name: Dependencies | |
run: dotnet restore -s ./nupkg -s https://api.nuget.org/v3/index.json | |
- name: Unit Test | |
run: dotnet test libNOM.test --no-restore --configuration Debug --framework net6.0 | |
- name: Pack | |
run: dotnet pack libNOM.collect --no-restore --configuration Release | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: libNOM.collect NuGet Package | |
path: libNOM.collect/bin/Release/libNOM.collect.*nupkg | |
if-no-files-found: error | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
# Only if commit was tagged. | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
needs: build | |
steps: | |
# Checkout again to access the changelog. | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download | |
uses: actions/download-artifact@v3 | |
with: | |
name: libNOM.collect NuGet Package | |
- name: Version | |
run: echo "nupkg_version=$((((Get-Item -Path .\libNOM.collect.*.nupkg).Name -split '\.',3)[2] -split '\.',-2)[0])" >> $env:GITHUB_ENV | |
shell: pwsh | |
# Exit if version mismatch. | |
- name: Mismatch | |
if: ${{ github.ref_name != env.nupkg_version }} | |
run: | | |
echo "There is a version mismatch between git tag (${{ github.ref_name }}) and nupkg version (${{ env.nupkg_version }})!" | |
exit 1 | |
- name: Create | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: ${{ github.workspace }}/.github/changelogs/${{ github.ref_name }}.md | |
files: libNOM.collect.*nupkg |