mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-15 06:16:55 +02:00
Add coverage measurement to GitHub Actions
This commit is contained in:
parent
1b731a08bd
commit
f8d20378ea
35
.github/workflows/boxes.yml
vendored
35
.github/workflows/boxes.yml
vendored
@ -1,17 +1,26 @@
|
|||||||
name: build
|
name: build
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: add-packages
|
|
||||||
run: |
|
- name: add-packages
|
||||||
sudo apt-get update -y
|
run: |
|
||||||
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev diffutils vim-common
|
sudo apt-get update -y
|
||||||
- name: make
|
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev diffutils vim-common lcov
|
||||||
run: make
|
|
||||||
- name: make test
|
- name: make cov
|
||||||
run: make test
|
run: make cov
|
||||||
|
|
||||||
|
- name: make covtest
|
||||||
|
run: make covtest
|
||||||
|
|
||||||
|
- name: Coveralls
|
||||||
|
uses: coverallsapp/github-action@master
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
path-to-lcov: out/lcov-blackbox.info
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
[](https://github.com/ascii-boxes/boxes/actions/workflows/boxes.yml)
|
[](https://github.com/ascii-boxes/boxes/actions/workflows/boxes.yml)
|
||||||
|
[](https://coveralls.io/github/ascii-boxes/boxes?branch=master)
|
||||||
[](https://boxes.thomasjensen.com/releases.html)
|
[](https://boxes.thomasjensen.com/releases.html)
|
||||||
|
|
||||||
# boxes
|
# boxes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user