diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml b/dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml new file mode 100644 index 0000000000..5cf3d70996 --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml @@ -0,0 +1,28 @@ +name: Pull Request CI + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.1 + with: + persist-credentials: false + - run: | + git fetch origin ${{ github.event.pull_request.head.sha }} + git checkout ${{ github.event.pull_request.head.sha }} + - uses: actions/setup-node@v2-beta + with: + node-version: "15.x" + - run: npm ci + - run: npm test + - run: | + mkdir deploy-build/ + cp -r README.md src standalone out docs deploy-build/ + - uses: actions/upload-artifact@v2 + with: + name: pr-artifact + path: deploy-build/ |