mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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
95d4fb624f
commit
0003cf756e
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' &&",
|
||||
"!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,
|
||||
},
|
||||
|
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue