diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6465f33..2ae58c2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,10 +57,16 @@ jobs: working-directory: "${{ steps.scaffold.outputs.dir }}" run: git diff --exit-code - - run: bazel run @rules_go//go mod tidy + - name: Go smoke test + run: ./tools/go mod tidy working-directory: "${{ steps.scaffold.outputs.dir }}" if: "${{ matrix.preset == 'go' }}" - + + - name: JS smoke test + run: ./tools/pnpm list + working-directory: "${{ steps.scaffold.outputs.dir }}" + if: "${{ matrix.preset == 'js' }}" + - run: bazel lint ... working-directory: "${{ steps.scaffold.outputs.dir }}" diff --git a/{{ .ProjectSnake }}/WORKSPACE.bazel b/{{ .ProjectSnake }}/WORKSPACE.bazel index 0520cde..8b98a10 100644 --- a/{{ .ProjectSnake }}/WORKSPACE.bazel +++ b/{{ .ProjectSnake }}/WORKSPACE.bazel @@ -2,6 +2,7 @@ # # This file is a marker indicating the root of a Bazel workspace. # See MODULE.bazel for dependency information. +# NB: after ibazel supports MODULE.bazel as the marker, this file may no longer be needed. {{if and .Scaffold.lint .Computed.java -}} load("@aspect_rules_lint//lint:pmd.bzl", "fetch_pmd") diff --git a/{{ .ProjectSnake }}/tools/_run_under_cwd.sh b/{{ .ProjectSnake }}/tools/_run_under_cwd.sh index 53ce80d..c1a6bf3 100755 --- a/{{ .ProjectSnake }}/tools/_run_under_cwd.sh +++ b/{{ .ProjectSnake }}/tools/_run_under_cwd.sh @@ -18,4 +18,4 @@ case "$(basename "$0")" in ;; esac # NB: we don't use 'bazel run' because it may leave behind zombie processes under ibazel -bazel 2>/dev/null build "$target" && BAZEL_BINDIR=. exec $(bazel 2>/dev/null info execution_root)/$(bazel 2>/dev/null cquery --output=files "$target") "$@" +bazel 2>/dev/null build --build_runfile_links "$target" && BAZEL_BINDIR=. exec $(bazel 2>/dev/null info execution_root)/$(bazel 2>/dev/null cquery --output=files "$target") "$@"