Skip to content
Open
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
28 changes: 28 additions & 0 deletions .github/workflows/bzlmod-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# *******************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Bzlmod Lockfile Check
permissions:
contents: read
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
push:
branches:
- main
jobs:
bzlmod-lock:
uses: eclipse-score/cicd-workflows/.github/workflows/bzlmod-lock-check.yml@main
with:
working-directory: .
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
run: bazel mod tidy

- 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 //...
run: bazel test --lockfile_mode=error --config=x86_64-linux //...

- name: Lint rust code (with clippy)
run: bazel build --config=lint-rust //...
run: bazel build --lockfile_mode=error --config=lint-rust //...
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@main
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@main
with:
bazel-target: "test //:format.check" # optional, this is the default
bazel-target: "test --lockfile_mode=error //:format.check" # optional, this is the default
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ jobs:

- name: Build via Bazel
run: |
echo "Running: bazel build //..."
bazel build //...
echo "Running: bazel build --lockfile_mode=error //..."
bazel build --lockfile_mode=error //...

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

- name: Run Unit Test with Coverage for Rust
run: |
# Run tests
bazel coverage //:unit_tests \
bazel coverage --lockfile_mode=error //:unit_tests \
--collect_code_coverage \
--combined_report=lcov \
--experimental_generate_llvm_lcov \
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

# Bazel
bazel-*
MODULE.bazel.lock
user.bazelrc

# Ruff
Expand Down
6,881 changes: 6,881 additions & 0 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

Loading