summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/tests/cts/checkout/.github/workflows/pr.yml
blob: 53144304bb99ff1cc572280c12c30b0de970c2e3 (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
29
30
31
32
33
34
name: Pull Request CI

on:
  pull_request:
    branches: [main]

concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@v3
        with:
          persist-credentials: false
      - uses: actions/setup-node@v3
        with:
          node-version: '16.x'
      - run: npm ci
      - name: validating cache
        run: npx grunt run:validate-cache
      - run: npm test
      - name: copy out-wpt to wpt tree
        run: |
          git clone --depth 2 https://github.com/web-platform-tests/wpt.git
          rsync -av  out-wpt/ wpt/webgpu
      - name: adding wpt lint ignore rule for *.bin
        run: 'echo "TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.bin" >> wpt/lint.ignore'
      - name: test wpt lint
        run: ./wpt lint
        working-directory: ./wpt