Skip to content

Commit

Permalink
Use single global USE_BAZEL_VERSION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrukman committed Jan 13, 2024
1 parent 5a680e0 commit 35a1810
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
os: [ 'macos-11', 'ubuntu-22.04' ]
runs-on: ${{ matrix.os }}
name: Bazel ${{ matrix.bazel }} and Go ${{ matrix.go }} on ${{ matrix.os }}
env:
USE_BAZEL_VERSION: '${{ matrix.bazel }}'

steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -62,8 +65,6 @@ jobs:

- name: Setup Bazelisk
uses: bazelbuild/setup-bazelisk@v1
env:
USE_BAZEL_VERSION: '${{ matrix.bazel }}'

- name: Setup cache
uses: actions/cache@v2
Expand All @@ -77,18 +78,12 @@ jobs:
- name: Verify Bazel installation
run: bazel version
env:
USE_BAZEL_VERSION: '${{ matrix.bazel }}'

- name: Build
run: bazel build //...
env:
USE_BAZEL_VERSION: '${{ matrix.bazel }}'

- name: Run tests
run: bazel test //...
env:
USE_BAZEL_VERSION: '${{ matrix.bazel }}'

ui:
strategy:
Expand Down

0 comments on commit 35a1810

Please sign in to comment.