Remove Python matrix dimension it's now bundled #425
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
"on": [push, pull_request, workflow_dispatch] | |
permissions: read-all | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
env: | |
USE_BAZEL_VERSION: ${{ matrix.bazel-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
bazel-version: ["5.x", "6.x", "latest"] | |
os: ["ubuntu-latest", "macos-latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: "~/.cache/bazelisk\n~/.cache/bazel\n" | |
key: bazel-${{ matrix.bazel-version }}-cache-${{ github.run_id }} | |
restore-keys: bazel-${{ matrix.bazel-version }}-cache- | |
- run: sed -i.bak '/remove if Bazel version < 6/d' tests/test.cc && rm tests/test.cc.bak | |
if: ${{ startsWith(matrix.bazel-version, '5') }} | |
- name: Run tests | |
run: bazel test --test_env=NO_CLEANUP=1 //... | |
lint: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: trunk-io/trunk-action@v1 |