-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.04 KB
/
workflow.yml
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
41
42
43
name: CI
on:
push:
branches:
- main
- release-*
tags:
- '*.*.*'
pull_request:
jobs:
check:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
name: check - (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
# https://github.com/tweag/rules_haskell/issues/704
- name: "[Haskell] Install required packages"
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -yy libtinfo5
sudo apt-get clean
if: ${{ matrix.os == 'ubuntu-latest' }}
# Ruby rules use host install still: https://github.com/bazelruby/rules_ruby/issues/112
- name: "[Ruby] Install Ruby"
uses: ruby/setup-ruby@v1.152.0
- uses: bazelbuild/setup-bazelisk@v2
- name: Copy .bazelrc
run: cp tools/ci/bazel.rc $HOME/.bazelrc
- name: Test
run: bazel test --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} //...