-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (31 loc) · 1000 Bytes
/
main.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
name: CI
on:
pull_request:
branches:
- master
schedule:
# runs every day at 23:00
- cron: '0 23 * * *'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up submodules
run: bash ./scripts/addSubmodules.sh
- name: Build with docker
run: docker run --workdir "$GITHUB_WORKSPACE" --mount type=bind,source="$GITHUB_WORKSPACE",target="$GITHUB_WORKSPACE" --user "$(id -u)":"$(id -g)" gringofts/coverage:v1 hooks/pre-commit
# - name: Upload test report to codecov
# uses: codecov/codecov-action@v1
# with:
# flags: unittests # optional
# name: codecov-umbrella # optional
# fail_ci_if_error: true # optional (default = false)
Lint:
runs-on: ubuntu-latest
steps:
- name: Run Cpp Lint
uses: CyberZHG/github-action-cpp-lint@master
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@v1