1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore(ci): only run doc tests on linux (#17379)

Doc tests were observed to take over 100s on the Mac CI in one instance.
This commit is contained in:
David Sherret 2023-01-12 19:56:19 -05:00 committed by GitHub
parent f5847a9566
commit 5a84ecf0cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 10 deletions

View file

@ -592,14 +592,17 @@ const ci = {
"matrix.job == 'test' && matrix.profile == 'debug' &&",
"!startsWith(github.ref, 'refs/tags/')",
].join("\n"),
run: ["cargo test --locked --doc", "cargo test --locked"].join(
"\n",
),
run: "cargo test --locked",
},
{
name: "Test fastci",
if: "(matrix.job == 'test' && matrix.profile == 'fastci')",
run: "cargo test --locked",
if: "matrix.job == 'test' && matrix.profile == 'fastci'",
run: [
// Run unit then integration tests. Skip doc tests here
// since they are sometimes very slow on Mac.
"cargo test --locked --lib",
"cargo test --locked --test '*'",
].join("\n"),
env: {
CARGO_PROFILE_DEV_DEBUG: 0,
},

View file

@ -370,12 +370,12 @@ jobs:
if: |-
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'debug' &&
!startsWith(github.ref, 'refs/tags/')))
run: |-
cargo test --locked --doc
cargo test --locked
- name: Test fastci
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && ((matrix.job == ''test'' && matrix.profile == ''fastci'')))'
run: cargo test --locked
- name: Test fastci
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''test'' && matrix.profile == ''fastci''))'
run: |-
cargo test --locked --lib
cargo test --locked --test '*'
env:
CARGO_PROFILE_DEV_DEBUG: 0
- name: Test release