File tree Expand file tree Collapse file tree 4 files changed +68
-33
lines changed Expand file tree Collapse file tree 4 files changed +68
-33
lines changed Original file line number Diff line number Diff line change 9
9
- main
10
10
11
11
jobs :
12
- lint-app :
13
- name : Lint (biomejs)
14
- runs-on : ubuntu-latest
15
-
16
- steps :
17
- - uses : actions/checkout@v4
18
- - uses : pnpm/action-setup@v3
19
- - uses : actions/setup-node@v4
20
- with :
21
- node-version-file : ' .nvmrc'
22
- cache : ' pnpm'
23
- - run : pnpm install
24
- - run : pnpm lint:check
12
+ lint :
13
+ name : Lint App
14
+ uses : ./.github/workflows/lint.yml
25
15
26
- run-unit-tests :
27
- name : Run Tests
28
- runs-on : macos-latest
29
- needs : lint-app
30
-
31
- steps :
32
- - uses : actions/checkout@v4
33
- - uses : pnpm/action-setup@v3
34
- - uses : actions/setup-node@v4
35
- with :
36
- node-version-file : ' .nvmrc'
37
- cache : ' pnpm'
38
- - run : pnpm install
39
- - run : pnpm tsc --noEmit
40
- - run : pnpm test -- --coverage --runInBand --verbose
41
- - name : Coveralls
42
- uses : coverallsapp/github-action@v2
16
+ tests :
17
+ name : Tests
18
+ uses : ./.github/workflows/test.yml
19
+ needs : lint
43
20
44
21
build-macos :
45
22
name : Build macOS (electron-builder)
46
23
runs-on : macos-latest
47
- needs : run-unit-tests
24
+ needs : tests
25
+ if : ${{ !startsWith(github.head_ref, 'release/v') }}
48
26
49
27
steps :
50
28
- uses : actions/checkout@v4
71
49
build-windows :
72
50
name : Build Windows (electron-builder)
73
51
runs-on : windows-latest
74
- needs : run-unit-tests
52
+ needs : tests
53
+ if : ${{ !startsWith(github.head_ref, 'release/v') }}
75
54
76
55
steps :
77
56
- uses : actions/checkout@v4
95
74
build-linux :
96
75
name : Build Linux (electron-builder)
97
76
runs-on : ubuntu-latest
98
- needs : run-unit-tests
77
+ needs : tests
78
+ if : ${{ !startsWith(github.head_ref, 'release/v') }}
99
79
100
80
steps :
101
81
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ jobs :
7
+ lint :
8
+ name : biomejs
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : pnpm/action-setup@v3
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version-file : ' .nvmrc'
17
+ cache : ' pnpm'
18
+ - run : pnpm install
19
+ - run : pnpm lint:check
20
+
Original file line number Diff line number Diff line change @@ -10,9 +10,19 @@ permissions:
10
10
contents : write
11
11
12
12
jobs :
13
+ lint :
14
+ name : Lint App
15
+ uses : ./.github/workflows/lint.yml
16
+
17
+ tests :
18
+ name : Tests
19
+ uses : ./.github/workflows/test.yml
20
+ needs : lint
21
+
13
22
release-macos :
14
23
name : Publish macOS (electron-builder)
15
24
runs-on : macos-latest
25
+ needs : tests
16
26
17
27
steps :
18
28
- uses : actions/checkout@v4
45
55
release-windows :
46
56
name : Publish Windows (electron-builder)
47
57
runs-on : windows-latest
58
+ needs : tests
48
59
49
60
steps :
50
61
- uses : actions/checkout@v4
71
82
release-linux :
72
83
name : Publish Linux (electron-builder)
73
84
runs-on : ubuntu-latest
85
+ needs : tests
74
86
75
87
steps :
76
88
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ jobs :
7
+ run-unit-tests :
8
+ name : Run Tests
9
+ runs-on : macos-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : pnpm/action-setup@v3
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version-file : ' .nvmrc'
17
+ cache : ' pnpm'
18
+ - run : pnpm install
19
+ - run : pnpm tsc --noEmit
20
+ - run : pnpm test -- --coverage --runInBand --verbose
21
+ - name : Coveralls
22
+ uses : coverallsapp/github-action@v2
23
+
You can’t perform that action at this time.
0 commit comments