[CI] add bazel test and fix it #52
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: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
integration: | |
name: ${{ matrix.target }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
target: "x86_64-unknown-linux-gnu" | |
- os: macos-12 | |
target: "x86_64-apple-darwin" | |
- os: macos-14 | |
target: "aarch64-apple-darwin" | |
env: | |
USE_BAZEL_VERSION: "7.x" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: WORKSPACE | |
working-directory: examples/workspace | |
run: bazel test //... | |
- name: MODULE | |
working-directory: examples/bzlmod | |
run: bazel test //... | |
windows: | |
name: "x86_64-pc-windows" | |
runs-on: "windows-latest" | |
env: | |
USE_BAZEL_VERSION: "7.x" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: BUILD | |
run: bazel --output_user_root=C:/bzl build //... |