Update starters for v1.0.0 RC1 #125
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
# | |
# This workflow will build and run all unit tests. | |
# | |
name: dotnet-pr | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ "main", "feature*" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
configuration: [Release, Debug] | |
runs-on: ${{ matrix.os }} | |
env: | |
NUGET_CERT_REVOCATION_MODE: offline | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
clean: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.GPR_READ_TOKEN }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget | |
- name: Find solutions | |
shell: bash | |
run: echo "solutions=$(find ./ -type f -name "*.sln" | tr '\n' ' ')" >> $GITHUB_ENV | |
- name: Restore dependencies | |
shell: bash | |
run: | | |
for solution in ${{ env.solutions }}; do | |
dotnet restore $solution | |
done | |
- name: Build | |
shell: bash | |
run: | | |
for solution in ${{ env.solutions }}; do | |
dotnet build $solution --no-restore --configuration ${{ matrix.configuration }} | |
done |