Improve E2E CI integration
@@ -86,6 +86,34 @@ jobs:
submodules: 'true'
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'
+ # Update check run called "integration-fork" setting status to in_progress
+ - uses: actions/github-script@v1
+ id: set-check-run-in-progress
+ env:
+ number: ${{ github.event.client_payload.pull_request.number }}
+ job: ${{ github.job }}
+ url: ${{ job.html_url }}
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ const { data: pull } = await github.pulls.get({
+ ...context.repo,
+ pull_number: process.env.number
+ });
+ const ref = pull.head.sha;
+ const { data: checks } = await github.checks.listForRef({
+ ...context.repo,
+ ref
+ });
+ const check = checks.check_runs.filter(c => c.name === process.env.job);
+ const { data: result } = await github.checks.update({
+ ...context.repo,
+ check_run_id: check[0].id,
+ status: 'in_progress',
+ details_url: process.env.url,
+ });
+ return result;
+
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
@@ -140,6 +168,7 @@ jobs:
job: ${{ github.job }}
# Conveniently, job.status maps to https://developer.github.com/v3/checks/runs/#update-a-check-run
conclusion: ${{ job.status }}
+ url: ${{ job.html_url }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@@ -157,6 +186,7 @@ jobs:
...context.repo,
check_run_id: check[0].id,
status: 'completed',
- conclusion: process.env.conclusion
+ conclusion: process.env.conclusion,
+ details_url: process.env.url,
});
return result;
