Skip to content

Commit 3cf8e7d

Browse files
committed
chore(ci): Upgrade images and dependent test actions due to deprecation
GitHub Actions deprecated some older versions of the built-in "core" or "standard" actions (e.g., `checkout` or `upload-artifact`) and also the Ubuntu 18.04 environment. Ubuntu 18.04-based Actions images will be removed from availability on GitHub on April 1, 2023, coinciding with the official EOL of the system. > See http://github.com/actions/runner-images/issues/6002
1 parent 149e5f7 commit 3cf8e7d

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,30 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
include:
22-
- os: ubuntu-18.04
22+
- os: ubuntu-22.04
2323
# Install a tag from GitHub.
2424
install-custom: true
2525
version: v6.16.0
26-
llvm-version: '12'
27-
- os: ubuntu-20.04
26+
llvm-version: '13'
27+
- os: ubuntu-22.04
2828
# Install a specific package from PyPI.
2929
install-custom: false
3030
version: 6.17.0
31-
llvm-version: '13'
32-
- os: ubuntu-20.04
31+
llvm-version: '14'
32+
- os: ubuntu-22.04
3333
# Install a branch from GitHub.
3434
install-custom: true
3535
version: master
3636
llvm-version: 'latest'
37-
- os: ubuntu-20.04
37+
- os: ubuntu-22.04
3838
# Install the latest package from PyPI.
3939
install-custom: false
4040
version: master
4141
llvm-version: 'latest'
4242
name: "Fetch: ${{ matrix.os }}, LLVM ${{ matrix.llvm-version }}, ${{ matrix.install-custom && 'repository' || 'pip' }} ${{ matrix.version }}"
4343
runs-on: ${{ matrix.os }}
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
4646
- uses: ./
4747
id: codechecker
4848
with:
@@ -61,10 +61,10 @@ jobs:
6161
analyze-output: ['', 'my-output-dir']
6262

6363
name: "Simple analysis: ${{ matrix.logfile && 'logfile' || 'no logfile' }}, ${{ matrix.build-command && 'build-command' || 'no build-command' }}, ${{ matrix.analyze-output && 'analyze-output' || 'no analyze-output'}}"
64-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-22.04
6565

6666
steps:
67-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v3
6868
- run: test/fix_compile_json_paths.sh
6969
- uses: ./
7070
id: codechecker
@@ -82,9 +82,9 @@ jobs:
8282
8383
analyze-cfg:
8484
name: "Analyze: Custom configuration"
85-
runs-on: ubuntu-20.04
85+
runs-on: ubuntu-22.04
8686
steps:
87-
- uses: actions/checkout@v2
87+
- uses: actions/checkout@v3
8888
- run: test/fix_compile_json_paths.sh
8989
- uses: ./
9090
with:
@@ -93,9 +93,9 @@ jobs:
9393
logfile: 'test/simple/compile_commands.json'
9494
analyze-ctu:
9595
name: "Analyze: CTU shortcut"
96-
runs-on: ubuntu-20.04
96+
runs-on: ubuntu-22.04
9797
steps:
98-
- uses: actions/checkout@v2
98+
- uses: actions/checkout@v3
9999
- run: test/fix_compile_json_paths.sh
100100
- uses: ./
101101
id: codechecker
@@ -108,9 +108,9 @@ jobs:
108108

109109
report-converter:
110110
name: "Report converter: PyLint"
111-
runs-on: ubuntu-20.04
111+
runs-on: ubuntu-22.04
112112
steps:
113-
- uses: actions/checkout@v2
113+
- uses: actions/checkout@v3
114114
- name: "Install PyLint"
115115
run: |
116116
sudo apt-get install -y pylint
@@ -131,9 +131,9 @@ jobs:
131131

132132
reports-errors:
133133
name: "Parse: Findings are reported"
134-
runs-on: ubuntu-20.04
134+
runs-on: ubuntu-22.04
135135
steps:
136-
- uses: actions/checkout@v2
136+
- uses: actions/checkout@v3
137137
- run: test/fix_compile_json_paths.sh
138138
- uses: ./
139139
id: codechecker
@@ -148,27 +148,27 @@ jobs:
148148
149149
parse-html:
150150
name: "Parse: Generate and upload report HTML artefact"
151-
runs-on: ubuntu-20.04
151+
runs-on: ubuntu-22.04
152152
steps:
153-
- uses: actions/checkout@v2
153+
- uses: actions/checkout@v3
154154
- run: test/fix_compile_json_paths.sh
155155
- uses: ./
156156
id: codechecker
157157
with:
158158
logfile: 'test/simple/compile_commands.json'
159-
- uses: actions/upload-artifact@v2
159+
- uses: actions/upload-artifact@v3
160160
with:
161161
name: "Parse HTML test results"
162162
path: ${{ steps.codechecker.outputs.result-html-dir }}
163163
if-no-files-found: error
164164

165165
store:
166166
name: "Store: Authenticated local store of single result"
167-
runs-on: ubuntu-20.04
167+
runs-on: ubuntu-22.04
168168
env:
169169
CODECHECKER_VERSION: '6.18.1'
170170
steps:
171-
- uses: actions/checkout@v2
171+
- uses: actions/checkout@v3
172172
# Need to do this manually because the server for this test has to have
173173
# authentication on, with a known username and password.
174174
- name: "Set up CodeChecker server"
@@ -240,12 +240,12 @@ jobs:
240240
run: exit 1
241241
store-production:
242242
name: "Store: Store to a real server"
243-
runs-on: ubuntu-20.04
243+
runs-on: ubuntu-22.04
244244
if: ${{ github.event_name == 'push' }}
245245
env:
246246
CODECHECKER_VERSION: '6.19.1'
247247
steps:
248-
- uses: actions/checkout@v2
248+
- uses: actions/checkout@v3
249249
- run: test/fix_compile_json_paths.sh
250250
- uses: ./
251251
id: codechecker
@@ -262,7 +262,7 @@ jobs:
262262

263263
diff:
264264
name: "Diff: New findings are discovered and reported"
265-
runs-on: ubuntu-20.04
265+
runs-on: ubuntu-22.04
266266
env:
267267
CODECHECKER_VERSION: '6.19.1'
268268
# This time, we do not need authentication, so test with the official Docker subsystem.
@@ -272,7 +272,7 @@ jobs:
272272
ports:
273273
- 8001:8001/tcp
274274
steps:
275-
- uses: actions/checkout@v2
275+
- uses: actions/checkout@v3
276276
# Need to do this manually because the server for this test has to have
277277
# authentication on, with a known username and password.
278278
- name: "Wait for CodeChecker server service to go live"
@@ -308,7 +308,7 @@ jobs:
308308

309309
diff: true
310310
diff-url: 'http://0.0.0.0:8001/Default'
311-
- uses: actions/upload-artifact@v2
311+
- uses: actions/upload-artifact@v3
312312
if: ${{ steps.codechecker-diff.outputs.warnings-in-diff == 'true' }}
313313
with:
314314
name: "Diff HTML test results"

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ runs:
147147
using: "composite"
148148
steps:
149149
- name: "Check out repository ${{ inputs.repository }}"
150-
uses: actions/checkout@v2
150+
uses: actions/checkout@v3
151151
if: ${{ inputs.install-custom == 'true' }}
152152
with:
153153
path: CodeChecker

0 commit comments

Comments
 (0)