From 0ccfccdcd271cb75f7453c70c6c3f4cadd7f3858 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 15 May 2023 21:22:53 +0900 Subject: chore: check node_compat config diff in CI (#19119) --- .github/workflows/ci.generate.ts | 10 ++++++++++ .github/workflows/ci.yml | 6 ++++++ 2 files changed, 16 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 50c7b54b7..84ff65b4c 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -362,6 +362,10 @@ const ci = { ...submoduleStep("./test_util/wpt"), if: "matrix.wpt", }, + { + ...submoduleStep("./tools/node_compat/node"), + if: "matrix.job == 'lint'", + }, { name: "Create source tarballs (release, linux)", if: [ @@ -541,6 +545,12 @@ const ci = { run: "deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js", }, + { + name: "node_compat/setup.ts --check", + if: "matrix.job == 'lint'", + run: + "deno run --allow-write --allow-read --allow-run=git ./tools/node_compat/setup.ts --check", + }, { name: "Build debug", if: "matrix.job == 'test' && matrix.profile == 'debug'", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c266f8f40..9679ffbb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,6 +120,9 @@ jobs: - name: Clone submodule ./test_util/wpt run: git submodule update --init --recursive --depth=1 -- ./test_util/wpt if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (matrix.wpt)' + - name: Clone submodule ./tools/node_compat/node + run: git submodule update --init --recursive --depth=1 -- ./tools/node_compat/node + if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (matrix.job == ''lint'')' - name: 'Create source tarballs (release, linux)' if: |- !(github.event_name == 'pull_request' && matrix.skip_pr) && (startsWith(matrix.os, 'ubuntu') && @@ -328,6 +331,9 @@ jobs: - name: lint.js if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (matrix.job == ''lint'')' run: deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js + - name: node_compat/setup.ts --check + if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (matrix.job == ''lint'')' + run: deno run --allow-write --allow-read --allow-run=git ./tools/node_compat/setup.ts --check - name: Build debug if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (matrix.job == ''test'' && matrix.profile == ''debug'')' run: cargo build --locked --all-targets -- cgit v1.2.3