Skip to content

Commit 7eee973

Browse files
committed
test(ci): run tests in parallel
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 2d1611c commit 7eee973

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Gitify is a Node.js/Electron desktop application that displays GitHub notificati
4242
- NOTE: Some existing snapshot tests may fail but still return success - this is normal
4343
- Update snapshots after legitimate UI changes with `pnpm test -u`
4444
- **Run tests with coverage** (CI format):
45-
- `pnpm test --coverage --runInBand --verbose`
45+
- `pnpm test --verbose`
4646

4747
## Validation Scenarios
4848

.github/workflows/test.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,55 +17,55 @@ jobs:
1717

1818
- name: Setup pnpm
1919
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
20-
20+
2121
- name: Setup Node
2222
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2323
with:
24-
node-version-file: '.nvmrc'
25-
cache: 'pnpm'
26-
24+
node-version-file: ".nvmrc"
25+
cache: "pnpm"
26+
2727
- run: pnpm install
2828
- run: pnpm tsc --noEmit
29-
- run: pnpm test --coverage --runInBand --verbose
30-
29+
- run: pnpm test --verbose
30+
3131
- name: Archive code coverage results
3232
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
3333
with:
3434
name: code-coverage-report
3535
path: coverage/lcov.info
36-
36+
3737
sonarqube:
3838
name: SonarQube Cloud Analysis
3939
runs-on: ubuntu-latest
4040
needs: run-unit-tests
4141
# Only analyze PRs from the same repository. Limitation of SonarQube Cloud
42-
if: github.event.pull_request.head.repo.fork == false
43-
42+
if: github.event.pull_request.head.repo.fork == false
43+
4444
steps:
4545
- name: Checkout
4646
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4747
with:
48-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
49-
48+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
49+
5050
- name: Setup pnpm
5151
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
52-
52+
5353
- name: Setup Node
5454
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
5555
with:
56-
node-version-file: '.nvmrc'
57-
cache: 'pnpm'
58-
56+
node-version-file: ".nvmrc"
57+
cache: "pnpm"
58+
5959
- run: pnpm install
60-
60+
6161
- name: Download a single artifact
6262
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
6363
with:
6464
name: code-coverage-report
6565
path: coverage/
66-
66+
6767
- name: SonarQube Cloud Scan
6868
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 # v7.0.0
6969
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
7171
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)