Skip to content

updated .net version and pipeline to reflect version change #332

updated .net version and pipeline to reflect version change

updated .net version and pipeline to reflect version change #332

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