summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.generate.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-08-01 16:08:41 -0400
committerGitHub <noreply@github.com>2023-08-01 16:08:41 -0400
commit5e89d1a0ab7dd21ccabc91fb3226bab18a2bc18c (patch)
tree4ee9d9401ba3740c35cb5209091c4846ff120ac2 /.github/workflows/ci.generate.ts
parent45572e329a395cb20ecb8c2867cc66b7d3a28cfe (diff)
ci: lint on all operating systems (#20012)
Diffstat (limited to '.github/workflows/ci.generate.ts')
-rwxr-xr-x.github/workflows/ci.generate.ts22
1 files changed, 15 insertions, 7 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 17e0bae06..148fb1b26 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -369,6 +369,14 @@ const ci = {
os: Runners.ubuntu,
job: "lint",
profile: "debug",
+ }, {
+ os: Runners.macos,
+ job: "lint",
+ profile: "debug",
+ }, {
+ os: Runners.windows,
+ job: "lint",
+ profile: "debug",
}]),
},
// Always run main branch builds to completion. This allows the cache to
@@ -394,7 +402,7 @@ const ci = {
},
{
...submoduleStep("./tools/node_compat/node"),
- if: "matrix.job == 'lint'",
+ if: "matrix.job == 'lint' && startsWith(matrix.os, 'ubuntu')",
},
{
name: "Create source tarballs (release, linux)",
@@ -488,9 +496,8 @@ const ci = {
"rustc --version",
"cargo --version",
"which dpkg && dpkg -l",
- // Deno is installed when linting.
- 'if [ "${{ matrix.job }}" == "lint" ]',
- "then",
+ // Deno is installed when linting or testing.
+ 'if [[ "${{ matrix.job }}" == "lint" ]] || [[ "${{ matrix.job }}" == "test" ]]; then',
" deno --version",
"fi",
// Node is installed for benchmarks.
@@ -543,13 +550,14 @@ const ci = {
},
{
name: "test_format.js",
- if: "matrix.job == 'lint'",
+ if: "matrix.job == 'lint' && startsWith(matrix.os, 'ubuntu')",
run:
"deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check",
},
{
name: "Lint PR title",
- if: "matrix.job == 'lint' && github.event_name == 'pull_request'",
+ if:
+ "matrix.job == 'lint' && github.event_name == 'pull_request' && startsWith(matrix.os, 'ubuntu')",
env: {
PR_TITLE: "${{ github.event.pull_request.title }}",
},
@@ -563,7 +571,7 @@ const ci = {
},
{
name: "node_compat/setup.ts --check",
- if: "matrix.job == 'lint'",
+ if: "matrix.job == 'lint' && startsWith(matrix.os, 'ubuntu')",
run:
"deno run --allow-write --allow-read --allow-run=git ./tools/node_compat/setup.ts --check",
},