Remove old shields badge #23
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
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/v38.tar.gz && | |
tar xzf v38.tar.gz && | |
cd kcov-38 && | |
mkdir build && | |
cd build && | |
cmake .. && | |
make && | |
sudo make install && | |
cd ../.. && | |
rm -rf kcov-38 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Test | |
run: bats test | |
- name: Create and upload test coverage | |
run: |- | |
mkdir -p coverage && | |
kcov coverage bats test && | |
bash <(curl -s https://codecov.io/bash) |