Bump NuGet.Common from 6.4.0 to 6.4.2 in /src/ScriptSourceGenerator #37
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, Test, Package | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'src/**.csproj' | |
- '.github/workflows/build.yml' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
ubuntu-test: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_NOLOGO: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Caching | |
uses: actions/cache@v2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-${{ hashFiles('**/*.csproj') }} #hash of project files | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Setup .NET Sdk | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
6.x | |
- name: Test .NET 6 | |
run: dotnet test -v normal -f net6.0 --logger "console;verbosity=detailed" --nologo /nologo | |
upload-packages: | |
needs: [ubuntu-test] | |
if: success() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Caching | |
uses: actions/cache@v2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-${{ hashFiles('**/*.csproj') }} #hash of project files | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Setup .NET Sdk | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.x' | |
- name: Publish Nuget Package | |
uses: alirezanet/[email protected] | |
with: | |
PROJECT_FILE_PATH: src/ScriptSourceGenerator/ScriptSourceGenerator.csproj | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | |
TAG_FORMAT: v* |