Skip to content

Commit

Permalink
Add a CI test for the new bzlmod integration (#1617)
Browse files Browse the repository at this point in the history
* Test bzlmod build workflow for Bazel


---------

Co-authored-by: Andy Christiansen <[email protected]>
  • Loading branch information
macandy13 and Andy Christiansen authored Jul 3, 2023
1 parent aacf2b1 commit fed7337
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
pull_request: {}

jobs:
job:
name: bazel.${{ matrix.os }}
build_and_test_default:
name: bazel.${{ matrix.os }}.${{ matrix.bzlmod && 'bzlmod' || 'no_bzlmod' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2022]

bzlmod: [false, true]
steps:
- uses: actions/checkout@v3

Expand All @@ -28,8 +28,8 @@ jobs:
- name: build
run: |
bazel build //:benchmark //:benchmark_main //test/...
bazel build ${{ matrix.bzlmod && '--enable_bzlmod' || '--noenable_bzlmod' }} //:benchmark //:benchmark_main //test/...
- name: test
run: |
bazel test --test_output=all //test/...
bazel test ${{ matrix.bzlmod && '--enable_bzlmod' || '--noenable_bzlmod' }} --test_output=all //test/...

0 comments on commit fed7337

Please sign in to comment.