diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-04-24 12:52:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 12:52:44 -0400 |
commit | 17d35fdd7ef11cadf7951fc4d25868adfecf130b (patch) | |
tree | b236021f9a401b54388383d9cf1295a9425a8f1a | |
parent | c14bd770860395b76e98ba5c11a6dd7dfe284a20 (diff) |
ci: only run WPT on linux (#10351)
-rw-r--r-- | .github/workflows/ci.yml | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6afa9e657..2ce2176c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -281,24 +281,20 @@ jobs: cargo test --locked --doc cargo test --locked --all-targets - - name: Configure hosts file for WPT (unix) - if: runner.os != 'Windows' + # TODO(ry) Because CI is so slow on for OSX and Windows, we currently only run WPT on Linux. + - name: Configure hosts file for WPT (linux) + if: startsWith(matrix.os, 'ubuntu') 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' && matrix.profile == 'release' + if: startsWith(matrix.os, 'ubuntu') && matrix.kind == 'test' && matrix.profile == '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' && matrix.profile == 'debug' + if: startsWith(matrix.os, 'ubuntu') && matrix.kind == 'test' && matrix.profile == '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 |