Skip to content

Commit fd00185

Browse files
committed
Add basic macos bazel test workflow
Runs on post merge to main branch.
1 parent a3fb693 commit fd00185

4 files changed

Lines changed: 42 additions & 14 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Bazel Test (Post-Merge)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
trigger-win-latest-test:
10+
# This prevents the workflow from running automatically when someone
11+
# pushes to their fork.
12+
if: github.repository == 'cel-expr/cel-cpp'
13+
uses: ./.github/workflows/windows_bazel_test.yml
14+
trigger-mac-latest-test:
15+
if: github.repository == 'cel-expr/cel-cpp'
16+
uses: ./.github/workflows/macos_bazel_test.yml
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: MacOS Bazel Test
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
9+
name: Run Bazel Tests
10+
runs-on: macos-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Bazel and Bazelisk
16+
uses: bazel-contrib/setup-bazel@0.19.0
17+
with:
18+
bazelisk-cache: true
19+
disk-cache: ${{ github.workflow }}
20+
repository-cache: true
21+
22+
- name: Run Tests
23+
shell: bash
24+
run: |
25+
bazelisk test conformance:all conformance/policy:all

.github/workflows/windows_bazel_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
# //... won't work.
2626
shell: bash
2727
run: |
28-
bazelisk test --config=msvc conformance:all conformance/policy:all
28+
bazelisk test --config=msvc conformance:all conformance/policy:all

.github/workflows/windows_bazel_test_post_merge.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)