From 5f9f3181c9292caf9eff025184b0bfdea61cd988 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Sat, 13 Jan 2024 17:05:58 -0500 Subject: [PATCH] Add `USE_BAZEL_VERSION` to all Bazel command lines Also quote Bazel and Go versions in GitHub Actions. --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5b6ca5..e6d87e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,12 +58,12 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: ${{ matrix.go }} + go-version: '${{ matrix.go }}' - name: Setup Bazelisk uses: bazelbuild/setup-bazelisk@v1 env: - USE_BAZEL_VERSION: ${{ matrix.bazel }} + USE_BAZEL_VERSION: '${{ matrix.bazel }}' - name: Setup cache uses: actions/cache@v2 @@ -77,12 +77,18 @@ 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: