Skip to content

Commit

Permalink
Run our own test matrix (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-thm authored Oct 9, 2024
1 parent eee7a9b commit b9fc417
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,26 @@ concurrency:
cancel-in-progress: true
jobs:
test:
uses: bazel-contrib/.github/.github/workflows/bazel.yaml@v6
with:
folders: |
[
".",
"examples/demo",
]
# we only support Bazel 7, and only with bzlmod enabled
exclude: |
[
{"bzlmodEnabled": false},
{"bazelversion": "5.4.0"},
{"bazelversion": "6.4.0"},
]
# this ruleset only supports linux and macos
exclude_windows: true
strategy:
matrix:
folder: [".", "examples/demo"]
version: ["7.1.0", "8.0.0rc1"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.8.0
with:
repository-cache: true
bazelrc: common --announce_rc --color=yes --enable_workspace=false
- name: Configure Bazel version
working-directory: ${{ matrix.folder }}
run: |
echo "${{ matrix.version }}" > .bazelversion
bazel version
- name: Build
working-directory: ${{ matrix.folder }}
run: bazel build ...
- name: Test
working-directory: ${{ matrix.folder }}
run: bazel test ...

0 comments on commit b9fc417

Please sign in to comment.