summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-12 19:56:19 -0500
committerGitHub <noreply@github.com>2023-01-12 19:56:19 -0500
commit5a84ecf0cd90e65b37de2acd5ceded5535576dfe (patch)
tree2d8fa117a1ceb71bb6da43d1a5d058dc5689c5ee
parentf5847a95667aa00caa4956609e2e74fdeadee9d5 (diff)
chore(ci): only run doc tests on linux (#17379)
Doc tests were observed to take over 100s on the Mac CI in one instance.
-rw-r--r--.github/workflows/ci.generate.ts13
-rw-r--r--.github/workflows/ci.yml10
2 files changed, 13 insertions, 10 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 49f1363c9..980661a2d 100644
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -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,
},
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9fdf8f63a..72cc8c5e3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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