-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (35 loc) · 1.09 KB
/
ci.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
name: Continuous Integration
on: [push, pull_request]
jobs:
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install clang-format
run: |
sudo apt update
# This is needed because of a bug, see microsoft/azure-pipelines-image-generation#672
sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0
sudo apt-get autoremove
sudo apt install clang-format
- name: Check formatting using clang-format
run: ./ci/check_format.sh
build:
name: Build tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install protoc
run: |
sudo apt update
sudo apt install protobuf-compiler
- name: Check that the protobuf files compile using protoc
run: ./ci/check_build.sh
breaking-changes:
name: Check for breaking changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check that there is not breaking changes
run: ./ci/check_breaking_changes.sh