mirror of
https://github.com/denoland/deno.git
synced 2025-01-18 03:44:05 -05:00
ci: only run WPT on linux (#10351)
This commit is contained in:
parent
c14bd77086
commit
17d35fdd7e
1 changed files with 5 additions and 9 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -281,24 +281,20 @@ jobs:
|
||||||
cargo test --locked --doc
|
cargo test --locked --doc
|
||||||
cargo test --locked --all-targets
|
cargo test --locked --all-targets
|
||||||
|
|
||||||
- name: Configure hosts file for WPT (unix)
|
# TODO(ry) Because CI is so slow on for OSX and Windows, we currently only run WPT on Linux.
|
||||||
if: runner.os != 'Windows'
|
- name: Configure hosts file for WPT (linux)
|
||||||
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
run: ./wpt make-hosts-file | sudo tee -a /etc/hosts
|
run: ./wpt make-hosts-file | sudo tee -a /etc/hosts
|
||||||
working-directory: test_util/wpt/
|
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)
|
- name: Run web platform tests (release)
|
||||||
if: matrix.kind == 'test' && matrix.profile == 'release'
|
if: startsWith(matrix.os, 'ubuntu') && matrix.kind == 'test' && matrix.profile == 'release'
|
||||||
run: |
|
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 setup
|
||||||
deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts run --quiet --release
|
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)
|
- name: Run web platform tests (debug)
|
||||||
if: matrix.kind == 'test' && matrix.profile == 'debug'
|
if: startsWith(matrix.os, 'ubuntu') && matrix.kind == 'test' && matrix.profile == 'debug'
|
||||||
run: |
|
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 setup
|
||||||
deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts run --quiet
|
deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts run --quiet
|
||||||
|
|
Loading…
Add table
Reference in a new issue