-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.23 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
44
45
46
47
48
49
50
51
52
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@v4
# 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' }}
# This is required by recent rules_jvm_external versions.
# By default, ubuntu-latest is executed with JDK 8.
- name: "[Java] Install Java"
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
- name: Versions
run: |
echo "--> bazel"
bazel version
echo "--> java"
java --version
- 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 }} //...