Merge pull request #1186 from cloudbees-oss/v1-sync #247
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: Bazel test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'WORKSPACE' | |
| - 'src/**' | |
| - '!src/**.md' | |
| pull_request: | |
| paths: | |
| - 'WORKSPACE' | |
| - 'src/**' | |
| - '!src/**.md' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: temurin | |
| java-version: '8' | |
| - name: Setup Bazel | |
| uses: bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3.0.0 | |
| - name: Cache Bazel outputs | |
| uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| with: | |
| path: "~/.cache/bazel" | |
| key: bazel | |
| - name: Run Bazel test | |
| run: | | |
| bazel test //... |