Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #236
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
# SPDX-FileCopyrightText: 2021 The dotVariant Authors (see AUTHORS.txt) | |
# | |
# SPDX-License-Identifier: BSL-1.0 | |
# Run dotVariant.Test against the pre-built package instead of | |
# ProjectReference. This ensures that both the generator | |
# and the runtime library are packaged correctly. | |
name: package self-test | |
on: | |
pull_request: | |
push: | |
branch: | |
- '*' | |
defaults: | |
run: | |
shell: pwsh | |
working-directory: src | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: build package | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build package | |
run: dotnet build dotVariant/dotVariant.csproj -p:Configuration=Release | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: dotVariant.nupkg | |
path: src/dotVariant/bin/Release/*.nupkg | |
test-package: | |
needs: build | |
runs-on: ${{ matrix.runs-on }} | |
name: test (${{ matrix.tfm }}, ${{ matrix.runs-on }}, ${{ matrix.config }}) | |
strategy: | |
matrix: | |
tfm: [net6.0] | |
runs-on: [ubuntu-latest, macos-latest, windows-latest] | |
config: [Debug, Release] | |
include: | |
- tfm: net452 | |
runs-on: windows-latest | |
config: Debug | |
- tfm: net452 | |
runs-on: windows-latest | |
config: Release | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: nuget/setup-nuget@v1 | |
- uses: actions/[email protected] | |
with: | |
name: dotVariant.nupkg | |
path: src/.packages | |
- name: Install locally built package | |
run: nuget sources add -name local -source .packages | |
- name: Run consumer tests against package | |
run: dotnet test dotVariant.Test-${{ matrix.tfm }}/dotVariant.Test-${{ matrix.tfm }}.csproj -c ${{ matrix.config }} -p:PackageSelfTest=true | |