Skip to content
Closed
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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build & Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

Comment on lines +5 to +8

Copilot AI Mar 21, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow only runs for pushes/PRs on the master branch. If you want CI to validate PRs from any branch (common for feature branches), consider removing the branches filter under pull_request, and/or triggering pushes on the repository’s default branch (often main).

Suggested change
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches: [ "main" ]
pull_request:

Copilot uses AI. Check for mistakes.
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
Comment on lines +13 to +14

Copilot AI Mar 21, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For supply-chain safety, consider pinning GitHub Actions (e.g., actions/checkout and bazel-contrib/setup-bazel) to a commit SHA instead of a mutable tag like @v4 / @0.14.0. This reduces the risk of an upstream tag being moved to unexpected code.

Suggested change
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: bazel-contrib/setup-bazel@4d953e67229547324f8a156392c767bdafa5df42 # 0.14.0

Copilot uses AI. Check for mistakes.
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
- name: Build
run: bazel build //... --config=release
- name: Unit Tests
run: bazel test //... --config=release
Comment on lines +13 to +25

Copilot AI Mar 21, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steps: is not indented correctly. As written, the - uses: entries are siblings of steps rather than elements of the steps array, which will make the workflow YAML invalid (or the job have no steps). Indent each - ... under steps:.

Suggested change
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
- name: Build
run: bazel build //... --config=release
- name: Unit Tests
run: bazel test //... --config=release
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
- name: Build
run: bazel build //... --config=release
- name: Unit Tests
run: bazel test //... --config=release

Copilot uses AI. Check for mistakes.
Loading