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:
parent
f5847a9566
commit
5a84ecf0cd
2 changed files with 13 additions and 10 deletions
13
.github/workflows/ci.generate.ts
vendored
13
.github/workflows/ci.generate.ts
vendored
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue