-
-
Notifications
You must be signed in to change notification settings - Fork 137
36 lines (29 loc) · 882 Bytes
/
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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform:
- os: macos-latest
fail-fast: false
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: install deps
run: |
brew install tree || true
brew install kcov || true
sudo apt-get install -y kcov || true
sudo apt-get install -y tree || true
- name: Run Tests
run: COV=1 bash test/run.sh
- name: Deploy coverage report
if: ${{ matrix.platform.os }} == 'macos-latest'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage-all
user_name: 'nave-kcov-actions-bot'
user_email: '[email protected]'