Skip to content

Commit 37c552e

Browse files
committed
add a ci job
1 parent 9274dbc commit 37c552e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
# Cancels a previous run if a new commit is made on the same pull request
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Bazel
26+
uses: bazelbuild/setup-bazel@v3
27+
with:
28+
bazel-version: 'latest'
29+
30+
- name: Bazel tests
31+
run: bazel test src:all

0 commit comments

Comments
 (0)