-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·72 lines (65 loc) · 1.81 KB
/
base-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Bao component base workflow
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
gitlint:
runs-on: ubuntu-latest
container: baoproject/bao:latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- run: git config --global --add safe.directory $(realpath .)
- if: ${{ github.event_name == 'pull_request' }}
run: make gitlint GITLINT_BASE=${{ github.event.pull_request.base.sha }}
- if: ${{ github.event_name == 'push' }}
run: make gitlint GITLINT_BASE=${{ github.event.before }}
- if: ${{ github.event_name == 'workflow_dispatch' }}
run: make gitlint GITLINT_BASE=HEAD
license:
runs-on: ubuntu-latest
container: baoproject/bao:latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- run: >
make license-check
coding-style:
runs-on: ubuntu-latest
container: baoproject/bao:latest
strategy:
matrix:
platform: ["qemu-aarch64-virt"]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: make PLATFORM=${{ matrix.platform }} format-check
static-analysis:
runs-on: ubuntu-latest
container: baoproject/bao:latest
strategy:
matrix:
platform: ["qemu-aarch64-virt"]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: make PLATFORM=${{ matrix.platform }} tidy
- run: make PLATFORM=${{ matrix.platform }} cppcheck
pylint:
runs-on: ubuntu-latest
container: baoproject/bao:latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- run: >
make pylint