7
7
strategy :
8
8
fail-fast : false
9
9
matrix :
10
- node-version : ['16 ', '18 ', '20 ']
10
+ node-version : ['18 ', '20 ', '21 ']
11
11
os : [ubuntu-latest, macos-latest, windows-latest]
12
12
runs-on : ${{ matrix.os }}
13
13
# env:
@@ -25,17 +25,17 @@ jobs:
25
25
26
26
# linux dependencies
27
27
- run : sudo apt update && sudo apt install -y wine64
28
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
28
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
29
29
- run : wine --version
30
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
30
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
31
31
- run : sudo add-apt-repository ppa:git-core/ppa -y && sudo apt-get update -q && sudo apt-get install -y git
32
32
if : matrix.os == 'ubuntu-latest' && matrix.node-version == '*'
33
33
# macos dependencies
34
34
# required for electron-packager
35
35
# - run: brew update && brew cask install xquartz wine-stable
36
- # if: matrix.os == 'macos-latest' && matrix.node-version == '16 '
36
+ # if: matrix.os == 'macos-latest' && matrix.node-version == '18 '
37
37
# - run: wine64 --version
38
- # if: matrix.os == 'macos-latest' && matrix.node-version == '16 '
38
+ # if: matrix.os == 'macos-latest' && matrix.node-version == '18 '
39
39
- run : brew reinstall git
40
40
if : matrix.os == 'macos-latest' && matrix.node-version == '*'
41
41
# windows dependencies
@@ -52,92 +52,92 @@ jobs:
52
52
53
53
- run : npm ci
54
54
- run : npm run lint
55
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
55
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
56
56
- run : npm run build
57
57
- run : npm test
58
58
59
59
# publish artifacts
60
60
- run : npm pack
61
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
61
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
62
62
- run : npm run electronpackage -- --all
63
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
63
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
64
64
- run : npm run electronzip
65
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
65
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
66
66
67
67
- name : Upload npm pack
68
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
68
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
69
69
uses : actions/upload-artifact@v3
70
70
with :
71
71
name : ungit
72
72
path : ungit-*.tgz
73
73
retention-days : 7
74
74
75
75
- name : Upload ungit-darwin-arm64
76
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
76
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
77
77
uses : actions/upload-artifact@v3
78
78
with :
79
79
name : ungit-darwin-arm64
80
80
path : dist/ungit-darwin-arm64.zip
81
81
retention-days : 7
82
82
83
83
- name : Upload ungit-darwin-x64
84
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
84
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
85
85
uses : actions/upload-artifact@v3
86
86
with :
87
87
name : ungit-darwin-x64
88
88
path : dist/ungit-darwin-x64.zip
89
89
retention-days : 7
90
90
91
91
- name : Upload ungit-linux-arm64
92
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
92
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
93
93
uses : actions/upload-artifact@v3
94
94
with :
95
95
name : ungit-linux-arm64
96
96
path : dist/ungit-linux-arm64.zip
97
97
retention-days : 7
98
98
99
99
- name : Upload ungit-linux-armv7l
100
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
100
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
101
101
uses : actions/upload-artifact@v3
102
102
with :
103
103
name : ungit-linux-armv7l
104
104
path : dist/ungit-linux-armv7l.zip
105
105
retention-days : 7
106
106
107
107
- name : Upload ungit-linux-x64
108
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
108
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
109
109
uses : actions/upload-artifact@v3
110
110
with :
111
111
name : ungit-linux-x64
112
112
path : dist/ungit-linux-x64.zip
113
113
retention-days : 7
114
114
115
115
- name : Upload ungit-win32-arm64
116
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
116
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
117
117
uses : actions/upload-artifact@v3
118
118
with :
119
119
name : ungit-win32-arm64
120
120
path : dist/ungit-win32-arm64.zip
121
121
retention-days : 7
122
122
123
123
- name : Upload ungit-win32-ia32
124
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
124
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
125
125
uses : actions/upload-artifact@v3
126
126
with :
127
127
name : ungit-win32-ia32
128
128
path : dist/ungit-win32-ia32.zip
129
129
retention-days : 7
130
130
131
131
- name : Upload ungit-win32-x64
132
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 '
132
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 '
133
133
uses : actions/upload-artifact@v3
134
134
with :
135
135
name : ungit-win32-x64
136
136
path : dist/ungit-win32-x64.zip
137
137
retention-days : 7
138
138
139
139
- name : npm publish
140
- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '16 ' && github.repository == 'FredrikNoren/ungit' && github.ref == 'refs/heads/master'
140
+ if : matrix.os == 'ubuntu-latest' && matrix.node-version == '18 ' && github.repository == 'FredrikNoren/ungit' && github.ref == 'refs/heads/master'
141
141
uses : actions/github-script@v6
142
142
env :
143
143
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments