Third attempt to upload Linux render tests (#1076)
Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
This commit is contained in:
10
.github/workflows/linux-ci.yml
vendored
10
.github/workflows/linux-ci.yml
vendored
@@ -116,8 +116,16 @@ jobs:
|
||||
id: render_test
|
||||
run: xvfb-run -a ./mbgl-render-test-runner --manifestPath=metrics/linux-gcc8-release-style.json
|
||||
|
||||
- name: Save PR number
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.number }}
|
||||
run: |
|
||||
echo $PR_NUMBER > ./pr_number
|
||||
|
||||
- name: Upload render test result
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: render-test-result
|
||||
path: metrics/linux-gcc8-release-style.html
|
||||
path: |
|
||||
metrics/linux-gcc8-release-style.html
|
||||
./pr_number
|
||||
|
||||
10
.github/workflows/upload-render-test-results.yml
vendored
10
.github/workflows/upload-render-test-results.yml
vendored
@@ -1,5 +1,9 @@
|
||||
name: upload-render-test-results
|
||||
|
||||
permissions:
|
||||
pull-requests: write # This is required to leave a comment on the PR
|
||||
id-token: write # This is required for requesting the AWS JWT
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [linux-ci]
|
||||
@@ -38,9 +42,7 @@ jobs:
|
||||
with:
|
||||
aws-region: us-west-2
|
||||
role-to-assume: ${{ vars.OIDC_AWS_ROLE_TO_ASSUME }}
|
||||
role-session-name: ${{ github.run_id }}
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
role-session-name: ${{ github.run_id }}
|
||||
|
||||
- name: 'Unzip render-test-result artifact'
|
||||
run: unzip render-test-result.zip
|
||||
@@ -61,6 +63,6 @@ jobs:
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.payload.workflow_run.pull_requests[0].number,
|
||||
issue_number: Number(fs.readFileSync('./pr_number')),
|
||||
body: `Test results at https://maplibre-native-test-artifacts.s3.eu-central-1.amazonaws.com/${context.runId}-linux-gcc8-release-style.html`
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user