Skip to content

Commit

Permalink
chore: smoke-test running pnpm (#141)
Browse files Browse the repository at this point in the history
* Update WORKSPACE.bazel

* chore: smoke-test running pnpm

* chore: fix

* list instead of install
  • Loading branch information
alexeagle authored and illicitonion committed Sep 24, 2024
1 parent 3da76be commit 391e38a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand Down
1 change: 1 addition & 0 deletions {{ .ProjectSnake }}/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion {{ .ProjectSnake }}/tools/_run_under_cwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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") "$@"

0 comments on commit 391e38a

Please sign in to comment.