Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.7.0 #357
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: 'csharp' | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
3.1.x | |
5.0.x | |
6.0.x | |
7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c Release --no-restore | |
- name: Test | |
env: | |
PLAID__CLIENTID: ${{ secrets.PLAIDCLIENTID }} | |
PLAID__SECRET: ${{ secrets.PLAIDSECRET }} | |
run: dotnet test -c Release --no-build --verbosity normal | |
if: github.repository == 'viceroypenguin/Going.Plaid' | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: 'Test report' | |
path: '**/*.trx' | |
reporter: 'dotnet-trx' | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
- name: Package | |
run: dotnet pack src/Plaid/Plaid.csproj -c Release --no-build -o nupkgs | |
if: startsWith(github.ref, 'refs/tags/') | |
- name: Push to Nuget | |
run: dotnet nuget push "./nupkgs/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGETPUBLISHKEY }} | |
if: startsWith(github.ref, 'refs/tags/') |