1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -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' &&", "matrix.job == 'test' && matrix.profile == 'debug' &&",
"!startsWith(github.ref, 'refs/tags/')", "!startsWith(github.ref, 'refs/tags/')",
].join("\n"), ].join("\n"),
run: ["cargo test --locked --doc", "cargo test --locked"].join( run: "cargo test --locked",
"\n",
),
}, },
{ {
name: "Test fastci", name: "Test fastci",
if: "(matrix.job == 'test' && matrix.profile == 'fastci')", if: "matrix.job == 'test' && matrix.profile == 'fastci'",
run: "cargo test --locked", 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: { env: {
CARGO_PROFILE_DEV_DEBUG: 0, CARGO_PROFILE_DEV_DEBUG: 0,
}, },

View file

@ -370,12 +370,12 @@ jobs:
if: |- if: |-
!(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'debug' && !(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/'))) !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 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: env:
CARGO_PROFILE_DEV_DEBUG: 0 CARGO_PROFILE_DEV_DEBUG: 0
- name: Test release - name: Test release