File tree Expand file tree Collapse file tree 6 files changed +41
-19
lines changed Expand file tree Collapse file tree 6 files changed +41
-19
lines changed Original file line number Diff line number Diff line change 13
13
required : false
14
14
default : false
15
15
16
- env :
17
- NODE_VERSION : ' 22.x'
18
-
19
16
jobs :
17
+ config :
18
+ uses : ./.github/workflows/shared-config.yml
19
+
20
20
build-mac-and-windows :
21
+ needs : [config]
21
22
runs-on : macos-latest
22
23
strategy :
23
24
matrix :
29
30
- name : Setup Node.js
30
31
uses : actions/setup-node@v4
31
32
with :
32
- node-version : ${{ env.NODE_VERSION }}
33
+ node-version : ${{ needs.config.outputs.node-version }}
33
34
cache : ' npm'
34
35
35
36
- name : Install dependencies
@@ -48,13 +49,14 @@ jobs:
48
49
49
50
build-linux-appimage :
50
51
runs-on : ubuntu-latest
52
+ needs : [config]
51
53
steps :
52
54
- uses : actions/checkout@v4
53
55
54
56
- name : Setup Node.js
55
57
uses : actions/setup-node@v4
56
58
with :
57
- node-version : ${{ env.NODE_VERSION }}
59
+ node-version : ${{ needs.config.outputs.node-version }}
58
60
cache : ' npm'
59
61
60
62
- name : Install dependencies
74
76
75
77
build-linux-flatpak :
76
78
runs-on : ubuntu-latest
79
+ needs : [config]
77
80
container :
78
81
image : bilelmoussaoui/flatpak-github-actions:kde-6.5
79
82
options : --privileged
86
89
- name : Set up Node.js
87
90
uses : actions/setup-node@v3
88
91
with :
89
- node-version : ${{ env.NODE_VERSION }}
92
+ node-version : ${{ needs.config.outputs.node-version }}
90
93
cache : ' npm'
91
94
92
95
- name : Install dependencies
Original file line number Diff line number Diff line change 16
16
branches : ['main']
17
17
pull_request :
18
18
branches : ['main']
19
- schedule :
20
- - cron : ' 40 23 * * 3'
19
+ # schedule:
20
+ # - cron: '40 23 * * 3'
21
21
22
22
jobs :
23
23
analyze :
Original file line number Diff line number Diff line change 10
10
default : false
11
11
12
12
jobs :
13
+ config :
14
+ uses : ./.github/workflows/shared-config.yml
15
+
13
16
flatpak :
14
17
runs-on : ubuntu-latest
18
+ needs : [config]
15
19
container :
16
20
image : bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
17
21
options : --privileged
24
28
- name : Set up Node.js
25
29
uses : actions/setup-node@v4
26
30
with :
27
- node-version : ' 21.x '
31
+ node-version : ${{ needs.config.outputs.node-version }}
28
32
cache : ' npm'
29
33
30
34
- name : Install dependencies
Original file line number Diff line number Diff line change 1
-
2
1
name : AppImage Build (Testing)
3
2
4
3
on :
10
9
required : false
11
10
default : false
12
11
13
- env :
14
- NODE_VERSION : ' 22.x'
15
-
16
12
jobs :
13
+ config :
14
+ uses : ./.github/workflows/shared-config.yml
15
+
17
16
build-linux-appimage :
18
17
runs-on : ubuntu-latest
18
+ needs : [config]
19
19
steps :
20
20
- uses : actions/checkout@v4
21
21
22
22
- name : Setup Node.js
23
23
uses : actions/setup-node@v4
24
24
with :
25
- node-version : ${{ env.NODE_VERSION }}
25
+ node-version : ${{ needs.config.outputs.node-version }}
26
26
cache : ' npm'
27
27
28
28
- name : Install dependencies
Original file line number Diff line number Diff line change
1
+ name : Shared Configuration
2
+
3
+ on :
4
+ workflow_call :
5
+ outputs :
6
+ node-version :
7
+ description : ' Node.js version to use'
8
+ value : ' 22.x'
9
+
10
+ jobs :
11
+ noop :
12
+ runs-on : ubuntu-latest
13
+ steps : []
Original file line number Diff line number Diff line change 2
2
# We should really have some tests!
3
3
name : Test
4
4
5
- on :
6
- workflow_dispatch
5
+ on : workflow_dispatch
7
6
8
7
jobs :
8
+ config :
9
+ uses : ./.github/workflows/shared-config.yml
10
+
9
11
test :
10
12
runs-on : ${{ matrix.os }}
11
-
13
+ needs : [config]
12
14
strategy :
13
15
matrix :
14
16
os : [macos-latest, windows-latest, ubuntu-latest]
20
22
- name : Install Node.js and NPM
21
23
uses : actions/setup-node@v4
22
24
with :
23
- node-version : 22
25
+ node-version : ${{ needs.config.outputs.node-version }}
24
26
cache : npm
25
27
26
28
- name : npm install
31
33
env :
32
34
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
35
run : |
34
- npm run package
36
+ npm run build
35
37
npm run lint
36
38
npm exec tsc
37
39
npm test
You can’t perform that action at this time.
0 commit comments