Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
path: "~/.cache/bazel"
key: bazel

- name: Bazel mod tidy
run: bazel mod tidy
- name: Bazel mod deps --lockfile_mode=refresh
run: bazel mod deps --lockfile_mode=refresh

- name: Build all workspace targets
run: bazel build --config=x86_64-linux //...
run: bazel build --lockfile_mode=error --config=x86_64-linux //...

- name: Run all workspace tests
run: bazel test --config=x86_64-linux //...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
copyright-check:
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
with:
bazel-target: "run //:copyright.check"
bazel-target: "run --lockfile_mode=error //:copyright.check"
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:

with:
# the bazel-target depends on your repo specific docs_targets configuration (e.g. "suffix")
bazel-target: "//:docs -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}"
bazel-target: "--lockfile_mode=error //:docs -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}"
retention-days: 3
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
formatting-check:
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
with:
bazel-target: "test //:format.check" # optional, this is the default
bazel-target: "test --lockfile_mode=error //:format.check" # optional, this is the default
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Bazel info (discover paths)
id: bazel-info
run: |
echo "BAZEL_OUTPUT_BASE=$(bazel info output_base)" >> $GITHUB_ENV
echo "BAZEL_OUTPUT_BASE=$(bazel info --lockfile_mode=error output_base)" >> $GITHUB_ENV
echo "BAZEL_USER_ROOT=$(bazel info output_user_root)" >> $GITHUB_ENV
echo "BAZEL_REPO_CACHE=$(bazel info repository_cache)" >> $GITHUB_ENV
bazel info
Expand All @@ -61,12 +61,12 @@ jobs:
- name: Build via Bazel
run: |
echo "Running: bazel build //..."
bazel build //...
bazel build --lockfile_mode=error //...

- name: Run Unit Tests via Bazel
run: |
echo "Running: bazel test //:unit_tests"
bazel test //:unit_tests
bazel test --lockfile_mode=error //:unit_tests

- name: Run Unit Test with Coverage for Rust
run: |
Expand Down
Loading