mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-11 04:16:58 +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
|
||||
|
||||
on: [push, pull_request]
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: add-packages
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev diffutils vim-common
|
||||
- name: make
|
||||
run: make
|
||||
- name: make test
|
||||
run: make test
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: add-packages
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev diffutils vim-common lcov
|
||||
|
||||
- name: make cov
|
||||
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://coveralls.io/github/ascii-boxes/boxes?branch=master)
|
||||
[](https://boxes.thomasjensen.com/releases.html)
|
||||
|
||||
# boxes
|
||||
|
Loading…
x
Reference in New Issue
Block a user