-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70211b1
commit 3c0cf0b
Showing
4 changed files
with
234 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "Maven - Error Prone and Checkstyle", | ||
"pattern": [ | ||
{ | ||
"regexp": "^.*\\[(ERROR|WARN(?:ING)?)\\]\\s+(.*):\\[(\\d+),(\\d+)\\] (?:error: )?[\\[\\(](.*)[\\]\\)] (.*)$", | ||
"severity": 1, | ||
"file": 2, | ||
"line": 3, | ||
"column": 4, | ||
"message": 6, | ||
"code": 5 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Annotate checks | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["ci", "docs"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
annotate: | ||
if: github.repository_owner == 'trinodb' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Download artifact' | ||
uses: actions/github-script@v5 | ||
with: | ||
script: | | ||
const fs = require('fs'); | ||
const opts = github.rest.actions.listWorkflowRunArtifacts.endpoint.merge({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: ${{github.event.workflow_run.id }}, | ||
}); | ||
const artifacts = await github.paginate(opts); | ||
for (const artifact of artifacts) { | ||
if (!artifact.name.startsWith('test report ')) { | ||
continue; | ||
} | ||
const download = await github.rest.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: artifact.id, | ||
archive_format: 'zip', | ||
}); | ||
fs.writeFileSync('${{github.workspace}}/' + artifact.name + '.zip', Buffer.from(download.data)); | ||
} | ||
- run: | | ||
set -xeuo pipefail | ||
pwd | ||
ls | ||
for archive in *.zip; do | ||
name=$(basename "$archive" .zip) | ||
mkdir "$name" | ||
(cd "$name" && unzip ../"$archive") | ||
done | ||
# Process unit and integration test reports | ||
- uses: scacap/action-surefire-report@v1 | ||
with: | ||
# this workflow should never fail, as it is not a quality gateway | ||
fail_if_no_tests: false | ||
commit: ${{github.event.workflow_run.head_sha}} | ||
# Process Product Test reports | ||
- uses: starburstdata/action-testng-report@v1.0.3 | ||
with: | ||
# this workflow should never fail, as it is not a quality gateway | ||
fail_if_empty: false | ||
commit: ${{github.event.workflow_run.head_sha}} | ||
github_token: ${{ github.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.