mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-12 18:01:14 +01:00
73 lines
2.6 KiB
YAML
73 lines
2.6 KiB
YAML
#
|
|
# boxes - Command line filter to draw/remove ASCII boxes around text
|
|
# Copyright (c) 1999-2023 Thomas Jensen and the boxes contributors
|
|
#
|
|
# 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/>.
|
|
#____________________________________________________________________________________________________________________
|
|
#====================================================================================================================
|
|
|
|
name: build
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
env:
|
|
TERM: xterm-color
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: add-packages
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev libncurses-dev diffutils vim-common lcov libcmocka-dev
|
|
|
|
- name: make cov
|
|
run: make cov
|
|
|
|
- name: Run white-box tests
|
|
run: make utest
|
|
|
|
- name: Run black-box tests
|
|
run: make covtest
|
|
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@v2
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: out/lcov-total.info
|
|
format: lcov
|
|
|
|
build-mac:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: add-packages
|
|
run: |
|
|
brew install git flex bison libunistring pcre2 ncurses diffutils lcov cmocka
|
|
|
|
- name: make cov
|
|
run: make cov LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
|
|
|
|
#- name: Run white-box tests
|
|
#run: make utest LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
|
|
|
|
- name: Run black-box tests
|
|
run: make covtest LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison
|
|
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@v2
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: out/lcov-total.info
|
|
format: lcov
|