updated .net version and pipeline to reflect version change #332
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: Run tests | |
on: | |
push: | |
branches: | |
# remove, if every branch is needed | |
# - staging | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-latest, windows-latest, macos-latest] | |
env: | |
dotNetVersion: net8.0 | |
dotNetConfiguration: Release | |
steps: | |
# checkout the repo | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
# install dependencies, build, and test | |
- name: Setup Dotnet for use with actions | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.x' | |
- name: Cache Nuget Packages | |
uses: actions/cache@v2 | |
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: Run automated unit and integration tests | |
run: dotnet test |