summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml
blob: 5cf3d70996d59703c4e09ee865a19cf54008e6d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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/