Upgrade bazel-common to pick up load statements for sh_* rules.
#517
Workflow file for this run
This file contains hidden or 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: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| name: "JDK ${{ matrix.java }}" | |
| strategy: | |
| matrix: | |
| java: [8, 11, 22] | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Cancel any previous runs for the same branch that are still running. | |
| - name: 'Cancel previous runs' | |
| uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1 | |
| with: | |
| access_token: ${{ github.token }} | |
| - name: 'Check out repository' | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: 'Cache Bazel dependencies' | |
| uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
| with: | |
| path: ~/.cache/bazel/*/*/external | |
| key: bazel-${{ hashFiles('MODULE.bazel') }} | |
| restore-keys: | | |
| bazel- | |
| - name: 'Set up JDK ${{ matrix.java }}' | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'zulu' | |
| - name: 'Test' | |
| shell: bash | |
| run: bazelisk test --lockfile_mode=error --test_output=errors //... | |
| - name: 'Test Deploy Script' | |
| if: matrix.java == 22 | |
| shell: bash | |
| run: release/install-local-snapshot.sh |