-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 742 Bytes
/
main.yml
File metadata and controls
35 lines (29 loc) · 742 Bytes
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
name: Build & Test Example Projects
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bazel cache
id: bazel-cache
uses: actions/cache@v3
env:
version: 6.0.0
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-{{ env.version }}-bazel-cache
- name: Build artifacts
run: bazel build //...
- name: Run tests
run: bazel test --test_output=errors --action_env="GTEST_COLOR=1" //...
- name: Scalafmt lint
uses: AvaPL/[email protected]