Skip to content

CI

CI #1910

Workflow file for this run

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