Skip to content

Commit c4a965e

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

8 files changed

Lines changed: 48 additions & 50 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ 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 build
2929
- run: pnpm package:macos --publish=never -c.mac.identity=null
3030
env:
3131
CSC_LINK: ${{ secrets.CSC_LINK }}
3232
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
33-
33+
3434
- name: Clean up builds
3535
run: rm -rfv dist/mac-universal
36-
36+
3737
- name: Upload artifacts
3838
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
3939
with:
@@ -51,20 +51,20 @@ jobs:
5151

5252
- name: Setup pnpm
5353
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
54-
54+
5555
- name: Setup Node
5656
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
5757
with:
58-
node-version-file: '.nvmrc'
59-
cache: 'pnpm'
60-
58+
node-version-file: ".nvmrc"
59+
cache: "pnpm"
60+
6161
- run: pnpm install
6262
- run: pnpm build
6363
- run: pnpm package:win --publish=never
64-
64+
6565
- name: Clean up builds
6666
run: Remove-Item dist/win-unpacked -Recurse
67-
67+
6868
- name: Upload artifacts
6969
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7070
with:
@@ -82,20 +82,20 @@ jobs:
8282

8383
- name: Setup pnpm
8484
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
85-
85+
8686
- name: Setup Node
8787
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
8888
with:
89-
node-version-file: '.nvmrc'
90-
cache: 'pnpm'
91-
89+
node-version-file: ".nvmrc"
90+
cache: "pnpm"
91+
9292
- run: pnpm install
9393
- run: pnpm build
9494
- run: pnpm package:linux --publish=never
95-
95+
9696
- name: Clean up builds
9797
run: rm -rfv dist/linux-unpacked
98-
98+
9999
- name: Upload artifacts
100100
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
101101
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
prepare: # macOS code-signing only works on `push` events and not `pull_request` events
16-
if: ${{ !startsWith(github.head_ref, 'release/v') }}
16+
if: ${{ !startsWith(github.head_ref, 'release/v') }}
1717
name: Prepare CI
1818
runs-on: ubuntu-latest
1919
steps:

.github/workflows/lint.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ 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 lint:check
29-

.github/workflows/publish.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Publish
22

3-
on:
3+
on:
44
workflow_call:
55
workflow_dispatch: # For manually running release process to verify code-signing of artifacts
66

@@ -18,13 +18,13 @@ jobs:
1818

1919
- name: Setup pnpm
2020
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
21-
21+
2222
- name: Setup Node
2323
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2424
with:
25-
node-version-file: '.nvmrc'
26-
cache: 'pnpm'
27-
25+
node-version-file: ".nvmrc"
26+
cache: "pnpm"
27+
2828
- run: pnpm install
2929
- run: pnpm build
3030
env:
@@ -39,7 +39,7 @@ jobs:
3939
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
4040
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
NOTARIZE: true
42-
42+
4343
- name: Upload artifacts
4444
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
4545
with:
@@ -57,13 +57,13 @@ jobs:
5757

5858
- name: Setup pnpm
5959
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
60-
60+
6161
- name: Setup Node
6262
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
6363
with:
64-
node-version-file: '.nvmrc'
65-
cache: 'pnpm'
66-
64+
node-version-file: ".nvmrc"
65+
cache: "pnpm"
66+
6767
- run: pnpm install
6868
- run: pnpm build
6969
env:
@@ -72,7 +72,7 @@ jobs:
7272
- run: pnpm package:win --publish onTagOrDraft
7373
env:
7474
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
75+
7676
- name: Upload artifacts
7777
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7878
with:
@@ -90,13 +90,13 @@ jobs:
9090

9191
- name: Setup pnpm
9292
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
93-
93+
9494
- name: Setup Node
9595
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
9696
with:
97-
node-version-file: '.nvmrc'
98-
cache: 'pnpm'
99-
97+
node-version-file: ".nvmrc"
98+
cache: "pnpm"
99+
100100
- run: pnpm install
101101
- run: pnpm build
102102
env:
@@ -105,10 +105,10 @@ jobs:
105105
- run: pnpm package:linux --publish onTagOrDraft
106106
env:
107107
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108-
108+
109109
- name: Upload artifacts
110110
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
111111
with:
112112
name: Gitify-release-linux
113113
path: dist/
114-
overwrite: true
114+
overwrite: true

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
uses: ./.github/workflows/publish.yml
2525
needs: tests
2626
secrets: inherit
27-
permissions:
28-
contents: write
27+
permissions:
28+
contents: write

.github/workflows/renovate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3131
with:
3232
node-version-file: .nvmrc
33-
33+
3434
- run: pnpm install --global renovate
35-
35+
3636
- name: Validate Renovate config
3737
run: renovate-config-validator

.github/workflows/triage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Triage PR
22

33
on:
44
pull_request_target:
5-
branches:
5+
branches:
66
- main
7-
types:
7+
types:
88
- opened
99
- reopened
1010
- edited
@@ -25,7 +25,7 @@ jobs:
2525
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
28+
2929
pr-labeler:
3030
name: Auto-label PR
3131
runs-on: ubuntu-latest

.github/workflows/website.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Website
22

33
on:
44
push:
5-
tags:
5+
tags:
66
- v*.*.*
77
workflow_dispatch: # For manually verify website deployment
88

@@ -15,4 +15,3 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- run: curl -X POST -d {} ${{ secrets.NETLIFY_BUILD_HOOK_URL }}
18-

0 commit comments

Comments
 (0)