Skip to content

Commit

Permalink
Separate testing into two jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Edwards committed Oct 5, 2024
1 parent 81be63a commit 0674102
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,33 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d #v3
with:
version: 8

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Install wasm-tools
run: dotnet workload install wasm-tools

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build Crypter.Test --configuration Release --no-restore

- name: Test
run: dotnet test Crypter.Test --configuration Release --no-build --verbosity normal

build-and-test-web:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,7 +54,7 @@ jobs:
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build Crypter.Test.Web --configuration Release --no-restore

- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
run: dotnet test Crypter.Test.Web --configuration Release --no-build --verbosity normal

0 comments on commit 0674102

Please sign in to comment.