2022-09-18 21:55:03 +02:00
|
|
|
#
|
|
|
|
# boxes - Command line filter to draw/remove ASCII boxes around text
|
2023-03-26 21:32:08 +02:00
|
|
|
# Copyright (c) 1999-2023 Thomas Jensen and the boxes contributors
|
2022-09-18 21:55:03 +02:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
|
|
|
|
# License, version 3, as published by the Free Software Foundation.
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
|
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
# details.
|
|
|
|
# You should have received a copy of the GNU General Public License along with this program.
|
|
|
|
# If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
#____________________________________________________________________________________________________________________
|
|
|
|
#====================================================================================================================
|
|
|
|
|
2021-04-17 21:12:19 +02:00
|
|
|
name: build
|
|
|
|
|
2021-09-11 21:04:53 +02:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2021-04-17 21:12:19 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-09-11 21:04:53 +02:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-06 13:59:26 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-09-11 21:04:53 +02:00
|
|
|
|
|
|
|
- name: add-packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -y
|
2023-05-08 21:12:00 +02:00
|
|
|
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev libncurses-dev diffutils vim-common lcov libcmocka-dev
|
2021-09-11 21:04:53 +02:00
|
|
|
|
|
|
|
- name: make cov
|
|
|
|
run: make cov
|
|
|
|
|
2021-10-20 22:28:34 +02:00
|
|
|
- name: Run white-box tests
|
|
|
|
run: make utest
|
|
|
|
|
|
|
|
- name: Run black-box tests
|
2021-09-11 21:04:53 +02:00
|
|
|
run: make covtest
|
|
|
|
|
|
|
|
- name: Coveralls
|
2023-04-29 14:58:00 +02:00
|
|
|
uses: coverallsapp/github-action@v2
|
2021-09-11 21:04:53 +02:00
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2023-04-29 14:58:00 +02:00
|
|
|
file: out/lcov-total.info
|
|
|
|
format: lcov
|