Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:

- name: Build with Bazel
run: |
bazel build //...
bazel build --lockfile_mode=error //...
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: .
1 change: 1 addition & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ jobs:
with:
bazel-targets: '//src/...'
bazel-config: 'lint'
bazel-args: '--lockfile_mode=error'
6 changes: 3 additions & 3 deletions .github/workflows/component_integration_tests_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ jobs:

- name: Build Test Scenarios with Bazel
run: |
bazel build --config x86_64-linux //tests/test_scenarios/rust:test_scenarios
bazel build --lockfile_mode=error --config x86_64-linux //tests/test_scenarios/rust:test_scenarios

- name: Build Test Scenarios with Bazel (PR)
if: github.event_name == 'pull_request' || github.event_name == 'push'
run: |
bazel test --config x86_64-linux //tests/test_cases:cit
bazel test --lockfile_mode=error --config x86_64-linux //tests/test_cases:cit

- name: Build Test Scenarios with Bazel (Nightly)
if: github.event_name == 'schedule'
env:
NIGHTLY: TRUE
run: |
bazel test --config x86_64-linux //tests/test_cases:cit_repeat --test_timeout=1200
bazel test --lockfile_mode=error --config x86_64-linux //tests/test_cases:cit_repeat --test_timeout=1200
2 changes: 1 addition & 1 deletion .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,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 @@ -38,5 +38,5 @@ jobs:
id-token: write

with:
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 @@ -24,4 +24,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
1 change: 1 addition & 0 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ jobs:
uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@main
with:
repo-url: "${{ github.server_url }}/${{ github.repository }}"
bazel-target: "run --lockfile_mode=error //:license-check"
secrets:
dash-api-token: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:

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

- 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: Create archive of test report
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:

- name: Run Tests via Bazel
run: |
echo "Running: bazel test //src/..."
bazel test --config x86_64-linux //src/...
echo "Running: bazel test --lockfile_mode=error //src/..."
bazel test --lockfile_mode=error --config x86_64-linux //src/...
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
3 changes: 0 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ pip.parse(
python_version = PYTHON_VERSION,
requirements_lock = "//tests/test_cases:requirements.txt.lock",
)

use_repo(python)

use_repo(pip, "pip_score_venv_test")

# Module deps
Expand Down
Loading
Loading