Skip to content

Commit b5c5f3d

Browse files
authored
Switch CI from Travis CI to GitHub Actions (#36)
1 parent 6fa5f95 commit b5c5f3d

File tree

2 files changed

+51
-42
lines changed

2 files changed

+51
-42
lines changed

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
branches: "*"
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
java: [8]
16+
os: [ubuntu-18.04]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Install bazel
22+
run: |
23+
wget https://github.com/bazelbuild/bazel/releases/download/3.7.0/bazel_3.7.0-linux-x86_64.deb
24+
sudo dpkg -i bazel_3.7.0-linux-x86_64.deb
25+
- name: Install clang8
26+
run: |
27+
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" | sudo tee -a /etc/apt/sources.list
28+
echo "deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" | sudo tee -a /etc/apt/sources.list
29+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
30+
sudo apt-get update
31+
sudo apt-get -y install clang-8 clang-format-8
32+
33+
- name: Clang format checker
34+
run: |
35+
bash format.sh
36+
37+
- name: Library build
38+
run: |
39+
bazel build //sentinel-core/... && bazel build //sentinel-datasource-extension/...
40+
41+
- name: Sentinel core unit tests
42+
run: |
43+
bazel test --test_filter=*-ParamMetricTest.TestOperateMetric --test_output=errors --strategy=TestRunner=standalone //sentinel-core/...
44+
45+
- name: Sentinel datasource extension tests
46+
run: |
47+
bazel build //sentinel-core/... && bazel build //sentinel-datasource-extension/...
48+
49+
- name: tsan for flow control
50+
run: |
51+
bazel build -c dbg --config=clang-tsan //tests/... && ./bazel-bin/tests/tsan-flow

.travis.yml

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

0 commit comments

Comments
 (0)