mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Bump ZedThree/clang-tidy-review from 0.10.1 to 0.12.1 (#4482)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
f7ac526c35
commit
1797b04329
2 changed files with 4 additions and 33 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -247,21 +247,16 @@ jobs:
|
||||||
|
|
||||||
- name: clang-tidy review
|
- name: clang-tidy review
|
||||||
if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request')
|
if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request')
|
||||||
uses: ZedThree/clang-tidy-review@v0.10.1
|
uses: ZedThree/clang-tidy-review@v0.12.1
|
||||||
id: review
|
|
||||||
with:
|
with:
|
||||||
build_dir: build
|
build_dir: build
|
||||||
config_file: ".clang-tidy"
|
config_file: ".clang-tidy"
|
||||||
split_workflow: true
|
split_workflow: true
|
||||||
exclude: "tests/*,lib/*"
|
exclude: "tests/*,lib/*"
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- name: clang-tidy-review upload
|
||||||
if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request')
|
if: (startsWith(matrix.os, 'ubuntu') && matrix.pch == false && matrix.qt-version == '5.15.2' && github.event_name == 'pull_request')
|
||||||
with:
|
uses: ZedThree/clang-tidy-review/upload@v0.12.1
|
||||||
name: clang-tidy-review
|
|
||||||
path: |
|
|
||||||
clang-tidy-review-output.json
|
|
||||||
clang-tidy-review-metadata.json
|
|
||||||
|
|
||||||
- name: Package - AppImage (Ubuntu)
|
- name: Package - AppImage (Ubuntu)
|
||||||
if: startsWith(matrix.os, 'ubuntu-20.04') && matrix.skip_artifact != 'yes'
|
if: startsWith(matrix.os, 'ubuntu-20.04') && matrix.skip_artifact != 'yes'
|
||||||
|
|
26
.github/workflows/post-clang-tidy-review.yml
vendored
26
.github/workflows/post-clang-tidy-review.yml
vendored
|
@ -12,30 +12,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Download artifact"
|
- uses: ZedThree/clang-tidy-review/post@v0.12.1
|
||||||
uses: actions/github-script@v6
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
run_id: ${{github.event.workflow_run.id }},
|
|
||||||
});
|
|
||||||
const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
|
|
||||||
return artifact.name == "clang-tidy-review"
|
|
||||||
})[0];
|
|
||||||
const download = await github.rest.actions.downloadArtifact({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
artifact_id: matchArtifact.id,
|
|
||||||
archive_format: 'zip',
|
|
||||||
});
|
|
||||||
const fs = require('fs');
|
|
||||||
fs.writeFileSync('${{github.workspace}}/clang-tidy-review.zip', Buffer.from(download.data));
|
|
||||||
- name: "Unzip artifact"
|
|
||||||
run: unzip clang-tidy-review.zip
|
|
||||||
|
|
||||||
- uses: ZedThree/clang-tidy-review/post@v0.10.1
|
|
||||||
id: review
|
|
||||||
with:
|
with:
|
||||||
lgtm_comment_body: ""
|
lgtm_comment_body: ""
|
||||||
|
|
Loading…
Reference in a new issue