mirror of
https://github.com/whisperity/CodeChecker-Action.git
synced 2026-02-09 06:37:44 +00:00
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
This commit is contained in:
54
.github/workflows/test.yml
vendored
54
.github/workflows/test.yml
vendored
@@ -19,22 +19,22 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-18.04
|
- os: ubuntu-22.04
|
||||||
# Install a tag from GitHub.
|
# Install a tag from GitHub.
|
||||||
install-custom: true
|
install-custom: true
|
||||||
version: v6.16.0
|
version: v6.16.0
|
||||||
llvm-version: '12'
|
llvm-version: '13'
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-22.04
|
||||||
# Install a specific package from PyPI.
|
# Install a specific package from PyPI.
|
||||||
install-custom: false
|
install-custom: false
|
||||||
version: 6.17.0
|
version: 6.17.0
|
||||||
llvm-version: '13'
|
llvm-version: '14'
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-22.04
|
||||||
# Install a branch from GitHub.
|
# Install a branch from GitHub.
|
||||||
install-custom: true
|
install-custom: true
|
||||||
version: master
|
version: master
|
||||||
llvm-version: 'latest'
|
llvm-version: 'latest'
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-22.04
|
||||||
# Install the latest package from PyPI.
|
# Install the latest package from PyPI.
|
||||||
install-custom: false
|
install-custom: false
|
||||||
version: master
|
version: master
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
name: "Fetch: ${{ matrix.os }}, LLVM ${{ matrix.llvm-version }}, ${{ matrix.install-custom && 'repository' || 'pip' }} ${{ matrix.version }}"
|
name: "Fetch: ${{ matrix.os }}, LLVM ${{ matrix.llvm-version }}, ${{ matrix.install-custom && 'repository' || 'pip' }} ${{ matrix.version }}"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: codechecker
|
id: codechecker
|
||||||
with:
|
with:
|
||||||
@@ -61,10 +61,10 @@ jobs:
|
|||||||
analyze-output: ['', 'my-output-dir']
|
analyze-output: ['', 'my-output-dir']
|
||||||
|
|
||||||
name: "Simple analysis: ${{ matrix.logfile && 'logfile' || 'no logfile' }}, ${{ matrix.build-command && 'build-command' || 'no build-command' }}, ${{ matrix.analyze-output && 'analyze-output' || 'no analyze-output'}}"
|
name: "Simple analysis: ${{ matrix.logfile && 'logfile' || 'no logfile' }}, ${{ matrix.build-command && 'build-command' || 'no build-command' }}, ${{ matrix.analyze-output && 'analyze-output' || 'no analyze-output'}}"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: test/fix_compile_json_paths.sh
|
- run: test/fix_compile_json_paths.sh
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: codechecker
|
id: codechecker
|
||||||
@@ -82,9 +82,9 @@ jobs:
|
|||||||
|
|
||||||
analyze-cfg:
|
analyze-cfg:
|
||||||
name: "Analyze: Custom configuration"
|
name: "Analyze: Custom configuration"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: test/fix_compile_json_paths.sh
|
- run: test/fix_compile_json_paths.sh
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -93,9 +93,9 @@ jobs:
|
|||||||
logfile: 'test/simple/compile_commands.json'
|
logfile: 'test/simple/compile_commands.json'
|
||||||
analyze-ctu:
|
analyze-ctu:
|
||||||
name: "Analyze: CTU shortcut"
|
name: "Analyze: CTU shortcut"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: test/fix_compile_json_paths.sh
|
- run: test/fix_compile_json_paths.sh
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: codechecker
|
id: codechecker
|
||||||
@@ -108,9 +108,9 @@ jobs:
|
|||||||
|
|
||||||
report-converter:
|
report-converter:
|
||||||
name: "Report converter: PyLint"
|
name: "Report converter: PyLint"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: "Install PyLint"
|
- name: "Install PyLint"
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y pylint
|
sudo apt-get install -y pylint
|
||||||
@@ -131,9 +131,9 @@ jobs:
|
|||||||
|
|
||||||
reports-errors:
|
reports-errors:
|
||||||
name: "Parse: Findings are reported"
|
name: "Parse: Findings are reported"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: test/fix_compile_json_paths.sh
|
- run: test/fix_compile_json_paths.sh
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: codechecker
|
id: codechecker
|
||||||
@@ -148,15 +148,15 @@ jobs:
|
|||||||
|
|
||||||
parse-html:
|
parse-html:
|
||||||
name: "Parse: Generate and upload report HTML artefact"
|
name: "Parse: Generate and upload report HTML artefact"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: test/fix_compile_json_paths.sh
|
- run: test/fix_compile_json_paths.sh
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: codechecker
|
id: codechecker
|
||||||
with:
|
with:
|
||||||
logfile: 'test/simple/compile_commands.json'
|
logfile: 'test/simple/compile_commands.json'
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: "Parse HTML test results"
|
name: "Parse HTML test results"
|
||||||
path: ${{ steps.codechecker.outputs.result-html-dir }}
|
path: ${{ steps.codechecker.outputs.result-html-dir }}
|
||||||
@@ -164,11 +164,11 @@ jobs:
|
|||||||
|
|
||||||
store:
|
store:
|
||||||
name: "Store: Authenticated local store of single result"
|
name: "Store: Authenticated local store of single result"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
CODECHECKER_VERSION: '6.18.1'
|
CODECHECKER_VERSION: '6.18.1'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
# Need to do this manually because the server for this test has to have
|
# Need to do this manually because the server for this test has to have
|
||||||
# authentication on, with a known username and password.
|
# authentication on, with a known username and password.
|
||||||
- name: "Set up CodeChecker server"
|
- name: "Set up CodeChecker server"
|
||||||
@@ -240,12 +240,12 @@ jobs:
|
|||||||
run: exit 1
|
run: exit 1
|
||||||
store-production:
|
store-production:
|
||||||
name: "Store: Store to a real server"
|
name: "Store: Store to a real server"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
env:
|
env:
|
||||||
CODECHECKER_VERSION: '6.19.1'
|
CODECHECKER_VERSION: '6.19.1'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: test/fix_compile_json_paths.sh
|
- run: test/fix_compile_json_paths.sh
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: codechecker
|
id: codechecker
|
||||||
@@ -262,7 +262,7 @@ jobs:
|
|||||||
|
|
||||||
diff:
|
diff:
|
||||||
name: "Diff: New findings are discovered and reported"
|
name: "Diff: New findings are discovered and reported"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
CODECHECKER_VERSION: '6.19.1'
|
CODECHECKER_VERSION: '6.19.1'
|
||||||
# This time, we do not need authentication, so test with the official Docker subsystem.
|
# This time, we do not need authentication, so test with the official Docker subsystem.
|
||||||
@@ -272,7 +272,7 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 8001:8001/tcp
|
- 8001:8001/tcp
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
# Need to do this manually because the server for this test has to have
|
# Need to do this manually because the server for this test has to have
|
||||||
# authentication on, with a known username and password.
|
# authentication on, with a known username and password.
|
||||||
- name: "Wait for CodeChecker server service to go live"
|
- name: "Wait for CodeChecker server service to go live"
|
||||||
@@ -308,7 +308,7 @@ jobs:
|
|||||||
|
|
||||||
diff: true
|
diff: true
|
||||||
diff-url: 'http://0.0.0.0:8001/Default'
|
diff-url: 'http://0.0.0.0:8001/Default'
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
if: ${{ steps.codechecker-diff.outputs.warnings-in-diff == 'true' }}
|
if: ${{ steps.codechecker-diff.outputs.warnings-in-diff == 'true' }}
|
||||||
with:
|
with:
|
||||||
name: "Diff HTML test results"
|
name: "Diff HTML test results"
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: "Check out repository ${{ inputs.repository }}"
|
- name: "Check out repository ${{ inputs.repository }}"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
if: ${{ inputs.install-custom == 'true' }}
|
if: ${{ inputs.install-custom == 'true' }}
|
||||||
with:
|
with:
|
||||||
path: CodeChecker
|
path: CodeChecker
|
||||||
|
|||||||
Reference in New Issue
Block a user