chore(deps): update dependency nunitlite to 4.3.1 #102
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: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
tags: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # avoid shallow clone | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build src -c Release -p:ContinuousIntegrationBuild=true | |
- name: Test | |
run: | | |
.\net40\Iesi.Collections.Test.exe | |
.\net462\Iesi.Collections.Test.exe | |
.\net6.0\Iesi.Collections.Test.exe | |
.\net8.0\Iesi.Collections.Test.exe | |
working-directory: src\Iesi.Collections.Test\bin\Release | |
- name: Pack | |
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' | |
run: dotnet pack src -o out --no-build | |
- name: Push | |
run: dotnet nuget push *.nupkg -s nuget.org -k $Env:NUGET_API_KEY | |
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' | |
working-directory: out | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} |