mirror of
https://github.com/bitwarden/server.git
synced 2025-02-18 02:11:22 +01:00
Upload and process test results as an artifact and report (#2555)
This commit is contained in:
parent
97b5a7e55d
commit
ea9e30c35f
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -73,13 +73,22 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Test OSS solution
|
- name: Test OSS solution
|
||||||
run: dotnet test ./test --configuration Debug --no-build
|
run: dotnet test ./test --configuration Debug --no-build --logger "trx;LogFileName=oss-test-results.trx" || true
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Test Bitwarden solution
|
- name: Test Bitwarden solution
|
||||||
run: dotnet test ./bitwarden_license/test --configuration Debug --no-build
|
run: dotnet test ./bitwarden_license/test --configuration Debug --no-build --logger "trx;LogFileName=bw-test-results.trx" || true
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
- name: Report test results
|
||||||
|
uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: Test Results
|
||||||
|
path: "**/*-test-results.trx"
|
||||||
|
reporter: dotnet-trx
|
||||||
|
fail-on-error: true
|
||||||
|
|
||||||
build-artifacts:
|
build-artifacts:
|
||||||
name: Build artifacts
|
name: Build artifacts
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
Loading…
Reference in New Issue
Block a user