-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup bats | ||
uses: mig4/setup-bats@v1 | ||
with: | ||
bats-version: 1.2.1 | ||
|
||
- name: Setup kcov | ||
run: |- | ||
sudo apt install libcurl4-openssl-dev libelf-dev libdw-dev cmake && | ||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && | ||
tar xzf master.tar.gz && | ||
cd kcov-master && | ||
mkdir build && | ||
cd build && | ||
cmake .. && | ||
make && | ||
sudo make install && | ||
cd ../.. && | ||
rm -rf kcov-master | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Test with coverage | ||
run: |- | ||
mkdir -p coverage && | ||
kcov coverage bats test && | ||
bash <(curl -s https://codecov.io/bash) |
This file was deleted.
Oops, something went wrong.