diff options
| author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-27 15:06:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-27 15:06:18 +0100 |
| commit | 2638aa03a5c3f7f4740ea7bee22127c01eb47a3c (patch) | |
| tree | 16a27215e5a3105af51d3c4405a171eab6262148 /.github/workflows | |
| parent | ecfda65effab41b8ca0ab65955d0542304437491 (diff) | |
tests: new typescript WPT runner (#9269)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb3a9e440..bb8df021d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: - name: Install Python uses: actions/setup-python@v1 with: - python-version: "2.7" + python-version: "3.8" architecture: x64 - name: Install Node @@ -234,6 +234,28 @@ jobs: cargo test --locked --doc cargo test --locked --all-targets + - name: Configure hosts file for WPT (unix) + if: runner.os != 'Windows' + run: ./wpt make-hosts-file | sudo tee -a /etc/hosts + working-directory: test_util/wpt/ + + - name: Configure hosts file for WPT (windows) + if: runner.os == 'Windows' + working-directory: test_util/wpt/ + run: python wpt make-hosts-file | Out-File $env:SystemRoot\System32\drivers\etc\hosts -Encoding ascii -Append + + - name: Run web platform tests (release) + if: matrix.kind == 'test_release' + run: | + deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts setup + deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts run --quiet --release + + - name: Run web platform tests (debug) + if: matrix.kind == 'test_debug' + run: | + deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts setup + deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts run --quiet + - name: Run Benchmarks if: matrix.kind == 'bench' run: cargo bench |
