From d85e4d333e20db8eea272cf61227331023147fbd Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 2 Aug 2025 11:25:15 -0700 Subject: [PATCH 1/7] Use a single shared cache for all CI workflows --- .github/actions/setup-go/action.yml | 73 +++++++++++++++++++---- .github/workflows/ci.yml | 18 ------ .github/workflows/copilot-setup-steps.yml | 4 -- .github/workflows/create-cache.yml | 45 ++++++++++++++ 4 files changed, 107 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/create-cache.yml diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 1bf1db92b0..34278e4e61 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -5,12 +5,13 @@ inputs: go-version: description: Go version range to set up. default: '>=1.24.0' - cache-name: - description: Name of scoped cache for this set up. - default: 'cache' + create: + description: Create the cache + default: 'false' runs: using: composite + steps: - name: Install Go id: install-go @@ -19,18 +20,68 @@ runs: go-version: ${{ inputs.go-version }} cache: false - # There is more code downloaded and built than is covered by '**/go.sum', - # so give each job its own cache to try and not end up sharing the wrong - # cache between jobs, and hash the Herebyfile and golancgi-lint version. - - - name: Go cache + - name: Cache Go modules uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - key: ts-setup-go-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }}-${{ github.workflow }}-${{ inputs.cache-name }} - restore-keys: | - ts-setup-go-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }}-${{ github.workflow }}- + key: go-modules-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }} path: | ~/go/pkg/mod + + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npm ci + + - name: Set mtimes + shell: bash + run: | + find . -type f ! -path ./.git/\*\* | go run github.com/slsyy/mtimehash/cmd/mtimehash@v1.0.0 || true + find . -type d ! -path ./.git/\*\* -exec touch -d '1970-01-01T00:00:01Z' {} + || true + + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npx hereby build + + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npx hereby test + + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npx hereby lint + + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npx dprint check + + # Avoid hardcoding the cache key more than once. + - name: Create Go build cache key + shell: bash + id: go-build-cache-key + env: + CACHE_KEY: go-build-cache-${{ runner.os }}-${{ steps.install-go.outputs.go-version }} + run: | + echo "key=$CACHE_KEY" >> $GITHUB_OUTPUT + + - if: ${{ inputs.create == 'true' }} + name: Save Go build cache + uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + with: + # Save a new cache each time by including the unique run ID. + key: ${{ steps.go-build-cache-key.outputs.key }}-${{ github.run_id }} + path: | + ~/.cache/go-build + ~/Library/Caches/go-build + ~/AppData/Local/go-build + + - if: ${{ inputs.create != 'true' }} + name: Restore Go build cache + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + with: + # key is unused, but a required input. + key: ${{ steps.go-build-cache-key.outputs.key }}- + # Restore the most recent cache, ignoring the run ID. + restore-keys: ${{ steps.go-build-cache-key.outputs.key }}- + path: | ~/.cache/go-build ~/Library/Caches/go-build ~/AppData/Local/go-build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54555d8a12..81ee4878b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,6 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: build # Avoid duplicate PR annotations. - name: Disable PR annotations @@ -112,8 +110,6 @@ jobs: node-version: 'lts/*' - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: test # Avoid duplicate PR annotations. - if: ${{ ! matrix.config.main }} @@ -199,8 +195,6 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: lint${{ (matrix.config.noembed && '-noembed') || ''}} # Avoid duplicate PR annotations. - if: ${{ ! matrix.config.main }} @@ -222,8 +216,6 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: format - run: npm ci @@ -240,8 +232,6 @@ jobs: node-version: '>=22.16.0' - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: generate - run: npm ci @@ -261,8 +251,6 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/setup-go - with: - cache-name: tidy - run: go mod tidy -diff - run: go -C ./_tools mod tidy -diff @@ -276,8 +264,6 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: smoke # Avoid duplicate PR annotations. - name: Disable PR annotations @@ -302,8 +288,6 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/setup-go - with: - cache-name: misc - run: go -C ./_tools run ./cmd/checkmodpaths $PWD @@ -316,8 +300,6 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go - with: - cache-name: baselines - run: npm ci diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 222d1f5108..e2ff6567b5 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -25,11 +25,7 @@ jobs: with: # Updated to 1.25.0-rc.1 to improve compilation time go-version: '>=1.25.0-rc.1' - cache-name: copilot-setup-steps - run: npm i -g @playwright/mcp@0.0.28 - run: npm ci # pull dprint caches before network access is blocked - run: npx hereby check:format || true - # cache build and lint operations - - run: npx hereby build || true - - run: npx hereby lint || true diff --git a/.github/workflows/create-cache.yml b/.github/workflows/create-cache.yml new file mode 100644 index 0000000000..a7e8b01d08 --- /dev/null +++ b/.github/workflows/create-cache.yml @@ -0,0 +1,45 @@ +name: Create CI cache + +on: + workflow_dispatch: + push: + branches: + - main + schedule: + # Run every day at 10:00 UTC / 03:00 PST + - cron: '0 10 * * *' + +permissions: + contents: read + +# Ensure scripts are run with pipefail. See: +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference +defaults: + run: + shell: bash + +jobs: + cache: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + go-version: + - '>=1.24.0' + - '>=1.25.0-rc.1' + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + submodules: true + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable + - uses: ./.github/actions/setup-go + with: + go-version: ${{ matrix.go-version }} + create: 'true' From 62f6451ee4bdbb972c0f908de2a0a44dba3ae8e0 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 2 Aug 2025 11:41:21 -0700 Subject: [PATCH 2/7] Fix create-cache --- .github/workflows/create-cache.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-cache.yml b/.github/workflows/create-cache.yml index a7e8b01d08..b6f64bf509 100644 --- a/.github/workflows/create-cache.yml +++ b/.github/workflows/create-cache.yml @@ -23,15 +23,18 @@ jobs: strategy: fail-fast: false matrix: - os: - - ubuntu-latest - - windows-latest - - macos-latest - go-version: - - '>=1.24.0' - - '>=1.25.0-rc.1' + include: + - os: ubuntu-latest + go-version: '>=1.24.0' + # Temporary for the Copilot setup steps + - os: ubuntu-latest + go-version: '>=1.25.0-rc.1' + - os: windows-latest + go-version: '>=1.24.0' + - os: macos-latest + go-version: '>=1.24.0' - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 From e1f4d9d2ccef45d9de0fb5370d503ef8070f2e33 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 2 Aug 2025 11:42:32 -0700 Subject: [PATCH 3/7] Matrix --- .github/workflows/create-cache.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create-cache.yml b/.github/workflows/create-cache.yml index b6f64bf509..e15554e10f 100644 --- a/.github/workflows/create-cache.yml +++ b/.github/workflows/create-cache.yml @@ -23,16 +23,17 @@ jobs: strategy: fail-fast: false matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + go-version: + - '>=1.24.0' + include: - - os: ubuntu-latest - go-version: '>=1.24.0' # Temporary for the Copilot setup steps - os: ubuntu-latest go-version: '>=1.25.0-rc.1' - - os: windows-latest - go-version: '>=1.24.0' - - os: macos-latest - go-version: '>=1.24.0' runs-on: ${{ matrix.os }} From 17fd13047ab76a3a00c12e0d11186c01d70f5d6a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 2 Aug 2025 11:55:29 -0700 Subject: [PATCH 4/7] Fix creator, keys --- .github/actions/setup-go/action.yml | 69 +++++++++++++++++------------ 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 34278e4e61..9907307087 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -20,16 +20,37 @@ runs: go-version: ${{ inputs.go-version }} cache: false - - name: Cache Go modules - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + # Avoid hardcoding the cache keys more than once. + - name: Create cache keys + shell: bash + id: cache-keys + env: + MODULES_KEY: go-modules-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml', '**/.dprint.jsonc') }} + BUILD_KEY: go-build-cache-${{ runner.os }}-${{ steps.install-go.outputs.go-version }} + run: | + echo "modules=$MODULES_KEY" >> $GITHUB_OUTPUT + echo "build=$BUILD_KEY" >> $GITHUB_OUTPUT + + - if: ${{ inputs.create != 'true' }} + name: Restore Go modules + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - key: go-modules-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }} + key: ${{ steps.cache-keys.outputs.modules }} path: | ~/go/pkg/mod - - if: ${{ inputs.create == 'true' }} - shell: bash - run: npm ci + - if: ${{ inputs.create != 'true' }} + name: Restore Go build cache + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + with: + # key is unused, but a required input. + key: ${{ steps.cache-keys.outputs.build }}- + # Restore the most recent cache, ignoring the run ID. + restore-keys: ${{ steps.cache-keys.outputs.build }}- + path: | + ~/.cache/go-build + ~/Library/Caches/go-build + ~/AppData/Local/go-build - name: Set mtimes shell: bash @@ -37,6 +58,12 @@ runs: find . -type f ! -path ./.git/\*\* | go run github.com/slsyy/mtimehash/cmd/mtimehash@v1.0.0 || true find . -type d ! -path ./.git/\*\* -exec touch -d '1970-01-01T00:00:01Z' {} + || true + # All steps below are only run if the cache is being created. + + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npm ci + - if: ${{ inputs.create == 'true' }} shell: bash run: npx hereby build @@ -53,34 +80,20 @@ runs: shell: bash run: npx dprint check - # Avoid hardcoding the cache key more than once. - - name: Create Go build cache key - shell: bash - id: go-build-cache-key - env: - CACHE_KEY: go-build-cache-${{ runner.os }}-${{ steps.install-go.outputs.go-version }} - run: | - echo "key=$CACHE_KEY" >> $GITHUB_OUTPUT - - if: ${{ inputs.create == 'true' }} - name: Save Go build cache + name: Save Go modules uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - # Save a new cache each time by including the unique run ID. - key: ${{ steps.go-build-cache-key.outputs.key }}-${{ github.run_id }} + key: ${{ steps.cache-keys.outputs.modules }} path: | - ~/.cache/go-build - ~/Library/Caches/go-build - ~/AppData/Local/go-build + ~/go/pkg/mod - - if: ${{ inputs.create != 'true' }} - name: Restore Go build cache - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + - if: ${{ inputs.create == 'true' }} + name: Save Go build cache + uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - # key is unused, but a required input. - key: ${{ steps.go-build-cache-key.outputs.key }}- - # Restore the most recent cache, ignoring the run ID. - restore-keys: ${{ steps.go-build-cache-key.outputs.key }}- + # Save a new cache each time by including the unique run ID. + key: ${{ steps.cache-keys.outputs.build }}-${{ github.run_id }} path: | ~/.cache/go-build ~/Library/Caches/go-build From bf69713f4722095b026ce115a324fd9b0808423d Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:19:27 -0700 Subject: [PATCH 5/7] Cache golangci-lint --- .github/actions/setup-go/action.yml | 43 ++++++++++++++++------- .github/workflows/ci.yml | 2 ++ .github/workflows/copilot-setup-steps.yml | 1 + 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 9907307087..76d923b206 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -8,6 +8,9 @@ inputs: create: description: Create the cache default: 'false' + lint-cache: + description: Restore the golangci-lint cache + default: 'false' runs: using: composite @@ -21,21 +24,25 @@ runs: cache: false # Avoid hardcoding the cache keys more than once. - - name: Create cache keys + - name: Get cache info shell: bash - id: cache-keys + id: cache-info env: MODULES_KEY: go-modules-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml', '**/.dprint.jsonc') }} + LINT_KEY: golangci-lint-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml', '**/.dprint.jsonc') }} BUILD_KEY: go-build-cache-${{ runner.os }}-${{ steps.install-go.outputs.go-version }} run: | - echo "modules=$MODULES_KEY" >> $GITHUB_OUTPUT - echo "build=$BUILD_KEY" >> $GITHUB_OUTPUT + echo "modules-key=$MODULES_KEY" >> $GITHUB_OUTPUT + echo "lint-key=$LINT_KEY" >> $GITHUB_OUTPUT + echo "build-key=$BUILD_KEY" >> $GITHUB_OUTPUT + echo "GOLANGCI_LINT_CACHE=$RUNNER_TEMP/golangci-lint-cache" >> $GITHUB_ENV - if: ${{ inputs.create != 'true' }} name: Restore Go modules uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - key: ${{ steps.cache-keys.outputs.modules }} + key: unused-key-${{ github.run_id }} + restore-keys: ${{ steps.cache-info.outputs.modules-key }}- path: | ~/go/pkg/mod @@ -43,15 +50,21 @@ runs: name: Restore Go build cache uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - # key is unused, but a required input. - key: ${{ steps.cache-keys.outputs.build }}- - # Restore the most recent cache, ignoring the run ID. - restore-keys: ${{ steps.cache-keys.outputs.build }}- + key: unused-key-${{ github.run_id }} + restore-keys: ${{ steps.cache-info.outputs.build-key }}- path: | ~/.cache/go-build ~/Library/Caches/go-build ~/AppData/Local/go-build + - if: ${{ inputs.create != 'true' && inputs.lint-cache == 'true' }} + name: Restore golangci-lint-cache + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + with: + key: unused-key-${{ github.run_id }} + restore-keys: ${{ steps.cache-info.outputs.lint-key }}- + path: ${{ env.GOLANGCI_LINT_CACHE }} + - name: Set mtimes shell: bash run: | @@ -84,7 +97,7 @@ runs: name: Save Go modules uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - key: ${{ steps.cache-keys.outputs.modules }} + key: ${{ steps.cache-info.outputs.modules-key }} path: | ~/go/pkg/mod @@ -92,9 +105,15 @@ runs: name: Save Go build cache uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: - # Save a new cache each time by including the unique run ID. - key: ${{ steps.cache-keys.outputs.build }}-${{ github.run_id }} + key: ${{ steps.cache-info.outputs.build-key }}-${{ github.run_id }} path: | ~/.cache/go-build ~/Library/Caches/go-build ~/AppData/Local/go-build + + - if: ${{ inputs.create == 'true' }} + name: Save golangci-lint cache + uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + with: + key: ${{ steps.cache-info.outputs.lint-key }}-${{ github.run_id }} + path: ${{ env.GOLANGCI_LINT_CACHE }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81ee4878b5..fdf3184856 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -195,6 +195,8 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable - uses: ./.github/actions/setup-go + with: + lint-cache: 'true' # Avoid duplicate PR annotations. - if: ${{ ! matrix.config.main }} diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index e2ff6567b5..010101eca4 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -25,6 +25,7 @@ jobs: with: # Updated to 1.25.0-rc.1 to improve compilation time go-version: '>=1.25.0-rc.1' + lint-cache: 'true' - run: npm i -g @playwright/mcp@0.0.28 - run: npm ci # pull dprint caches before network access is blocked From 06da7b2b945f22ecbe879a7857e6879cf1d61757 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:27:33 -0700 Subject: [PATCH 6/7] Fix typo --- .github/actions/setup-go/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 76d923b206..a70ed4423e 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -58,7 +58,7 @@ runs: ~/AppData/Local/go-build - if: ${{ inputs.create != 'true' && inputs.lint-cache == 'true' }} - name: Restore golangci-lint-cache + name: Restore golangci-lint cache uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: key: unused-key-${{ github.run_id }} From 65d94ad766ba191c3e239871052a6c02ed5b8306 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:30:00 -0700 Subject: [PATCH 7/7] Lint noembed cache --- .github/actions/setup-go/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index a70ed4423e..863bec5a3a 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -89,6 +89,10 @@ runs: shell: bash run: npx hereby lint + - if: ${{ inputs.create == 'true' }} + shell: bash + run: npx hereby lint --noembed + - if: ${{ inputs.create == 'true' }} shell: bash run: npx dprint check