Skip to content

Commit d260737

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

4 files changed

Lines changed: 55 additions & 21 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ jobs:
2424
node-version-file: .nvmrc
2525
cache: pnpm
2626

27-
- run: pnpm install
28-
- run: pnpm build
29-
- run: pnpm package:macos --publish=never -c.mac.identity=null
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build application
31+
run: pnpm build
32+
33+
- name: Package for macOS
34+
run: pnpm package:macos --publish=never -c.mac.identity=null
3035
env:
3136
CSC_LINK: ${{ secrets.CSC_LINK }}
3237
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
@@ -58,9 +63,14 @@ jobs:
5863
node-version-file: .nvmrc
5964
cache: pnpm
6065

61-
- run: pnpm install
62-
- run: pnpm build
63-
- run: pnpm package:win --publish=never
66+
- name: Install dependencies
67+
run: pnpm install --frozen-lockfile
68+
69+
- name: Build application
70+
run: pnpm build
71+
72+
- name: Package for Windows
73+
run: pnpm package:win --publish=never
6474

6575
- name: Clean up builds
6676
run: Remove-Item dist/win-unpacked -Recurse
@@ -89,9 +99,14 @@ jobs:
8999
node-version-file: .nvmrc
90100
cache: pnpm
91101

92-
- run: pnpm install
93-
- run: pnpm build
94-
- run: pnpm package:linux --publish=never
102+
- name: Install dependencies
103+
run: pnpm install --frozen-lockfile
104+
105+
- name: Build application
106+
run: pnpm build
107+
108+
- name: Package for Linux
109+
run: pnpm package:linux --publish=never
95110

96111
- name: Clean up builds
97112
run: rm -rfv dist/linux-unpacked

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ jobs:
2424
node-version-file: .nvmrc
2525
cache: pnpm
2626

27-
- run: pnpm install
28-
- run: pnpm lint:check
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Run linter
31+
run: pnpm lint:check

.github/workflows/publish.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ jobs:
2525
node-version-file: .nvmrc
2626
cache: pnpm
2727

28-
- run: pnpm install
29-
- run: pnpm build
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Build application
32+
run: pnpm build
3033
env:
3134
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
3235
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
33-
- run: pnpm package:macos --publish onTagOrDraft
36+
37+
- name: Package and publish for macOS
38+
run: pnpm package:macos --publish onTagOrDraft
3439
env:
3540
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
3641
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
@@ -64,12 +69,17 @@ jobs:
6469
node-version-file: .nvmrc
6570
cache: pnpm
6671

67-
- run: pnpm install
68-
- run: pnpm build
72+
- name: Install dependencies
73+
run: pnpm install --frozen-lockfile
74+
75+
- name: Build application
76+
run: pnpm build
6977
env:
7078
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
7179
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
72-
- run: pnpm package:win --publish onTagOrDraft
80+
81+
- name: Package and publish for Windows
82+
run: pnpm package:win --publish onTagOrDraft
7383
env:
7484
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7585

@@ -97,12 +107,17 @@ jobs:
97107
node-version-file: .nvmrc
98108
cache: pnpm
99109

100-
- run: pnpm install
101-
- run: pnpm build
110+
- name: Install dependencies
111+
run: pnpm install --frozen-lockfile
112+
113+
- name: Build application
114+
run: pnpm build
102115
env:
103116
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
104117
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
105-
- run: pnpm package:linux --publish onTagOrDraft
118+
119+
- name: Package and publish for Linux
120+
run: pnpm package:linux --publish onTagOrDraft
106121
env:
107122
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108123

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
node-version-file: .nvmrc
5757
cache: pnpm
5858

59-
- run: pnpm install
59+
- name: Install dependencies
60+
run: pnpm install --frozen-lockfile
6061

6162
- name: Download a single artifact
6263
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0

0 commit comments

Comments
 (0)