From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../cts/checkout/.github/workflows/workflow.yml | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 dom/webgpu/tests/cts/checkout/.github/workflows/workflow.yml (limited to 'dom/webgpu/tests/cts/checkout/.github/workflows/workflow.yml') diff --git a/dom/webgpu/tests/cts/checkout/.github/workflows/workflow.yml b/dom/webgpu/tests/cts/checkout/.github/workflows/workflow.yml new file mode 100644 index 0000000000..0d475a269e --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/.github/workflows/workflow.yml @@ -0,0 +1,80 @@ +name: Workflow CI + +on: + workflow_run: + workflows: + - "Pull Request CI" + types: + - completed + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.1 + with: + persist-credentials: false + - run: | + PR=$(curl https://api.github.com/search/issues?q=${{ github.event.workflow_run.head_sha }} | + grep -Po "(?<=${{ github.event.workflow_run.repository.full_name }}\/pulls\/)\d*" | head -1) + echo "PR=$PR" >> $GITHUB_ENV + - uses: actions/github-script@v3 + id: pr-artifact + with: + github-token: ${{secrets.GITHUB_TOKEN}} + result-encoding: string + script: | + const artifacts_url = context.payload.workflow_run.artifacts_url + const artifacts_req = await github.request(artifacts_url) + const artifact = artifacts_req.data.artifacts[0] + const download = await github.actions.downloadArtifact({ + owner: context.repo.owner, + repo: context.repo.repo, + artifact_id: artifact.id, + archive_format: "zip" + }) + return download.url + - run: | + rm -rf * + curl -L -o "pr-artifact.zip" "${{ steps.pr-artifact.outputs.result }}" + unzip -o pr-artifact.zip + rm pr-artifact.zip + - run: | + cat << EOF >> firebase.json + { + "hosting": { + "public": ".", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] + } + } + EOF + cat << EOF >> .firebaserc + { + "projects": { + "default": "gpuweb-cts" + } + } + EOF + - id: deployment + continue-on-error: true + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CTS }} + expires: 10d + channelId: cts-prs-${{ env.PR }}-${{ github.event.workflow_run.head_sha }} + - uses: peter-evans/create-or-update-comment@v1 + continue-on-error: true + if: ${{ steps.deployment.outcome == 'success' }} + with: + issue-number: ${{ env.PR }} + body: | + Previews, as seen when this [build job](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}) started (${{ github.event.workflow_run.head_sha }}): + [**Run tests**](${{ steps.deployment.outputs.details_url }}/standalone/) | [**View tsdoc**](${{ steps.deployment.outputs.details_url }}/docs/tsdoc/) + -- cgit v1.2.3