chore(deps): update dependency system.text.json to v8 [security] #235
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-and-test | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET 6 SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "6.0.x" | |
- uses: actions/cache@v4 | |
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 | |
- run: dotnet restore | |
- run: dotnet build --configuration Release --no-restore | |
- run: dotnet test --no-restore --verbosity normal --logger trx --results-directory "testresults" | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: testresults | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} |