Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KJHJason authored Feb 7, 2024
1 parent 43f0010 commit 0ff9323
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,25 @@ on:
branches: [ "master" ]

jobs:
build:
build-and-test:

runs-on: ubuntu-latest

defaults:
run:
working-directory: ./src

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 3.0.x

- name: Restore dependencies
run: dotnet restore ./src/HMACSerialiser.csproj
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore ./src/HMACSerialiser.csproj

- name: Test HMAC
run: dotnet test --configuration Release --no-build --verbosity normal ./tests/HMACTests/HMACTests.csproj
- name: Test HKDF
run: dotnet test --configuration Release --no-build --verbosity normal ./tests/HKDFTests/HKDFTests.csproj
- name: Test Base64 Encoders
run: dotnet test --configuration Release --no-build --verbosity normal ./tests/Base64EncoderTests/Base64EncoderTests.csproj

run: dotnet build --no-restore

- name: Run tests
run: dotnet test --no-build --verbosity normal

0 comments on commit 0ff9323

Please sign in to comment.