mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-19 02:23:24 +08:00
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:
@@ -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]
|
||||
Reference in New Issue
Block a user