12
12
jobs :
13
13
build-fs :
14
14
name : Build F#
15
+ # TODO: upgrade to 24.04->24.04 (because LTS) as soon as it's available, instead of 22.04->23.10
15
16
runs-on : ubuntu-22.04
16
17
container :
17
- image : " ubuntu:22.04 "
18
+ image : " ubuntu:23.10 "
18
19
steps :
19
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@v4
20
21
- name : Install required dependencies
21
22
run : |
22
23
apt update
23
24
apt install --yes sudo
24
25
sudo apt install --yes --no-install-recommends git
25
- # workaround for https://github.com/actions/runner/issues/2033
26
- - name : ownership workaround
27
- run : git config --global --add safe.directory '*'
28
26
29
27
- name : Setup .NET
30
28
run : |
@@ -44,11 +42,12 @@ jobs:
44
42
file-conventions-tests :
45
43
name : Run FileConventions-lib unit tests
46
44
needs : build-fs
45
+ # TODO: upgrade to 24.04->24.04 (because LTS) as soon as it's available, instead of 22.04->23.10
47
46
runs-on : ubuntu-22.04
48
47
container :
49
- image : " ubuntu:22.04 "
48
+ image : " ubuntu:23.10 "
50
49
steps :
51
- - uses : actions/checkout@v2
50
+ - uses : actions/checkout@v4
52
51
- name : Install required dependencies
53
52
run : |
54
53
apt update
@@ -69,22 +68,20 @@ jobs:
69
68
70
69
build-ts :
71
70
name : Build TypeScript
71
+
72
+ # TODO: upgrade to 24.04->24.04 (because LTS) as soon as it's available, instead of 22.04->23.10
72
73
runs-on : ubuntu-22.04
73
74
container :
74
- image : " ubuntu:22.04 "
75
+ image : " ubuntu:23.10 "
75
76
steps :
76
- - uses : actions/checkout@v2
77
+ - uses : actions/checkout@v4
77
78
- name : Install required dependencies
78
79
run : |
79
80
apt update
80
81
apt install --yes sudo
81
82
sudo apt install --yes --no-install-recommends git ca-certificates
82
83
83
84
sudo apt install --yes --no-install-recommends npm curl
84
- # need to update nodejs because with ubuntu's default nodejs version we would get this error:
85
- # error @jest/[email protected] : The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "12.22.9"
86
- sudo npm install --global n
87
- sudo n lts
88
85
- name : Print versions
89
86
run : |
90
87
git --version
@@ -110,22 +107,19 @@ jobs:
110
107
commitlint-plugins-tests :
111
108
name : Run commitlint-related tests
112
109
needs : build-ts
110
+ # TODO: upgrade to 24.04->24.04 (because LTS) as soon as it's available, instead of 22.04->23.10
113
111
runs-on : ubuntu-22.04
114
112
container :
115
- image : " ubuntu:22.04 "
113
+ image : " ubuntu:23.10 "
116
114
steps :
117
- - uses : actions/checkout@v2
115
+ - uses : actions/checkout@v4
118
116
- name : Install required dependencies
119
117
run : |
120
118
apt update
121
119
apt install --yes sudo
122
120
sudo apt install --yes --no-install-recommends git ca-certificates
123
121
124
122
sudo apt install --yes --no-install-recommends npm curl
125
- # need to update nodejs because with ubuntu's default nodejs version we would get this error:
126
- # error @jest/[email protected] : The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "12.22.9"
127
- sudo npm install --global n
128
- sudo n lts
129
123
- name : Install commitlint
130
124
run : |
131
125
npm install conventional-changelog-conventionalcommits
@@ -152,39 +146,27 @@ jobs:
152
146
needs :
153
147
- file-conventions-tests
154
148
- commitlint-plugins-tests
149
+ # TODO: upgrade to 24.04->24.04 (because LTS) as soon as it's available, instead of 22.04->23.10
155
150
runs-on : ubuntu-22.04
156
151
container :
157
- image : " ubuntu:22.04 "
152
+ image : " ubuntu:23.10 "
158
153
env :
159
154
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
160
155
steps :
161
156
- name : Install required dependencies
162
157
run : |
163
158
apt update && apt install --yes sudo
164
- sudo apt install --yes --no-install-recommends git
165
159
166
160
sudo apt install --yes --no-install-recommends npm curl
167
- # need to update nodejs because with ubuntu's default nodejs version we would get this error:
168
- # ```
169
- # + npx commitlint --from HEAD~1 --to HEAD --verbose
170
- # /__w/conventions/conventions/node_modules/typescript/lib/typescript.js:139
171
- # for (let i = startIndex ?? 0; i < array.length; i++) {
172
- # ^
173
- #
174
- # SyntaxError: Unexpected token '?'
175
- # at wrapSafe (internal/modules/cjs/loader.js:915:16)
176
- # ...
177
- # ```
178
- sudo npm install --global n
179
- sudo n lts
180
- - uses : actions/checkout@v2
161
+
162
+ sudo apt install --yes --no-install-recommends git
163
+ # workaround for https://github.com/actions/runner/issues/2033
164
+ git config --global --add safe.directory '*'
165
+ - uses : actions/checkout@v4
181
166
with :
182
167
submodules : recursive
183
168
# needed because of commit-lint, see https://github.com/conventional-changelog/commitlint/issues/3376
184
169
fetch-depth : 0
185
- # workaround for https://github.com/actions/runner/issues/2033
186
- - name : ownership workaround
187
- run : git config --global --add safe.directory '*'
188
170
- name : Print versions
189
171
run : |
190
172
git --version
0 commit comments