bugfix and change cli method #1707
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: "Coverage" | |
on: | |
push: | |
branches: [ master, ] | |
jobs: | |
build_on_linux_coverage: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: prepare | |
run: | | |
sudo apt update | |
sudo apt install ninja-build lcov language-pack-ja | |
- name: configure | |
run: | | |
mkdir build | |
cd build | |
cmake .. -G Ninja \ | |
-DCMAKE_BUILD_TYPE=coverage \ | |
-DCMAKE_C_COMPILER=gcc \ | |
-DCMAKE_CXX_COMPILER=g++ \ | |
-DUSE_EXTRA_TEST=on | |
- name: build | |
run: | | |
cd build | |
ninja | |
sudo ninja install | |
./ydsh ../tools/scripts/copy_mod4extra.ds | |
- name: test | |
run: | | |
cd build | |
ctest --output-on-failure | |
- name: generate lcov | |
run: | | |
./tools/scripts/report_cov.ds build | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@1.1.3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./build/coverage_report-cleaned.info |