Skip to content

mergeRequestIid to long #13

mergeRequestIid to long

mergeRequestIid to long #13

Workflow file for this run

name: DotNet
on:
pull_request:
branches:
- master
push:
branches:
- master
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup dotnet 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1'
- name: Setup dotnet 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0'
- run: dotnet tool install -g Codecov.Tool
- run: dotnet tool install -g GitVersion.Tool
- name: GitVersion
run: dotnet gitversion /l console /output buildserver
- run: ./build.ps1
shell: pwsh
- run: ./test.ps1
shell: pwsh
- name: Push NuGet
if: |
github.event.action == 'published'
shell: pwsh
run: dotnet nuget push **/*.nupkg --source $Env:SOURCE --api-key $Env:TOKEN --skip-duplicate
env:
SOURCE: 'https://api.nuget.org/v3/index.json'
TOKEN: ${{ secrets.NUGET_API_KEY }}