-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 836 Bytes
/
c-cpp.yml
File metadata and controls
34 lines (31 loc) · 836 Bytes
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
name: C/C++ CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
container:
image: defaultwriter/c-image-repo:latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: config
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: coverage
run: ./bin/coverageall.sh --all --clean
- name: sonarscanner
run: ./bin/sonarscanner.sh --coverage
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: codacy coverage
run: ./bin/codacy.sh --coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.3.0