Skip to content

Commit

Permalink
verbose testing (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes authored Nov 19, 2023
2 parents 716b59d + 8f76d30 commit 8803dad
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NODE_VERSION }}"
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "7.0.403"
- name: Install deps
run: yarn
- name: Prepare
Expand Down Expand Up @@ -47,6 +50,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NODE_VERSION }}"
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "7.0.403"
- name: Install deps
run: yarn
- name: Prepare
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/pull-request-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NODE_VERSION }}"
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "7.0.403"
- name: Install deps
run: yarn
- name: Prepare
run: yarn nx run-many --target=prepare --parallel --all
run: yarn nx run-many --target=prepare --parallel --all --verbose
env:
ONEPASSWORD_TOKEN: ${{ secrets.ONEPASSWORD_TOKEN }}
ONEPASSWORD_SERVER_URL: ${{ secrets.ONEPASSWORD_SERVER_URL }}
ONEPASSWORD_VAULT_ID: ${{ secrets.ONEPASSWORD_VAULT_ID }}
- name: Run all unit tests
run: yarn nx run-many --target=test/unit --all --parallel
run: yarn nx run-many --target=test/unit --all --parallel --verbose

build:
name: Verify PR - Buildable
Expand All @@ -49,6 +52,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NODE_VERSION }}"
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "7.0.403"
- name: Install deps
run: yarn
- name: Prepare
Expand Down
4 changes: 2 additions & 2 deletions apps/playnite-web-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"build": {
"executor": "nx:run-commands",
"options": {
"command": "dotnet build --configuration Release --no-dependencies",
"command": "dotnet build --configuration Release --no-dependencies --framework net4.6.2",
"cwd": "{projectRoot}/src"
}
},
"test/unit": {
"executor": "nx:run-commands",
"options": {
"command": "dotnet build && dotnet test --results-directory ../../../.test-runs/unit --configuration Release --framework net4.6.2",
"command": "dotnet test --results-directory ../../../.test-runs/unit --configuration Release --framework net4.6.2",
"cwd": "{projectRoot}/tests/unit/src"
}
}
Expand Down

0 comments on commit 8803dad

Please sign in to comment.