Support build with Bazel (#4865)

* Support build with Bazel, fixing tests to make them capable of running in concurrency and hermetic.
This commit is contained in:
Zhanhui Li
2022-08-23 13:11:53 +08:00
committed by GitHub
parent 92d10baf24
commit ec8a93d2f7
105 changed files with 1881 additions and 244 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Build and Run Tests By Bazel
on:
pull_request_target:
types: [opened, reopened, synchronize]
push:
branches:
- master
- develop
- bazel
jobs:
build:
name: "Java (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v2
- name: Build
run: bazel build --config=remote --remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
- name: Run Tests
run: bazel test --config=remote --remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
@@ -1,4 +1,4 @@
name: Build
name: Build and Run Tests By Maven
on:
pull_request:
types: [opened, reopened, synchronize]