-
Notifications
You must be signed in to change notification settings - Fork 27
40 lines (39 loc) · 1.18 KB
/
verify-pull-request.yml
File metadata and controls
40 lines (39 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Verify PR
on: [pull_request]
jobs:
run-bazel-tests:
name: "Run Bazel tests"
runs-on: ubuntu-latest
strategy:
matrix:
cpp-compiler: ["clang", "gcc"]
options: ["-c opt", ""]
steps:
- uses: actions/checkout@v6
- uses: bazel-contrib/setup-bazel@0.8.5
with:
bazelisk-cache: true
disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}"
repository-cache: true
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
- run: bazel test --test_output=errors ${{ matrix.options }} ...
check-formatting:
name: "Check Python formatting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: psf/black@stable
with:
options: "--check --verbose"
version: "24.8.0"
check-build-json:
name: "Check build.json"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: bazel-contrib/setup-bazel@0.8.5
with:
bazelisk-cache: true
disk-cache: "verify-pr:check-build-json"
repository-cache: true
- run: python3 scripts/build_helpers/manage_build_json.py --validate