fix googletest comapt #886
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: | |
pull_request: | |
branches: | |
- master | |
- develop | |
- 'feature/**' | |
- 'fix/**' | |
- 'gh/**' | |
- 'github/**' | |
- 'githubactions/**' | |
paths-ignore: | |
- '*.ini' | |
- '*.md' | |
- '*.yml' | |
- '*.yaml' | |
- '.circleci/**' | |
- '.semaphore/**' | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
codecov: | |
runs-on: ubuntu-latest | |
# jobs.*.if では env 参照できない | |
# act の場合 github.ref_protected がないのでそれを利用 | |
# act では実行しない | |
if: github.ref_protected != null | |
env: | |
USE_COVERAGE: gcov | |
DEFS: -DIUTEST_FORCE_COLORCONSOLE=1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: info | |
run: | | |
make -C test showcxxmacros | |
make -C test showcxxversion | |
make -C test check_stdlib | |
- name: specs | |
run: | | |
make -C test minimum_tests && ./test/minimum_tests --spec --feature | |
make -C test clean | |
- name: build | |
run: | | |
make -C test -j4 default | |
- name: test | |
run: | | |
make -C test test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: test-result | |
path: test/*.xml | |
- name: coverage | |
run: | | |
make -C test coverage | |
- uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
coveralls: | |
runs-on: ubuntu-latest | |
# jobs.*.if では env 参照できない | |
# act の場合 github.ref_protected がないのでそれを利用 | |
# act では実行しない | |
if: github.ref_protected != null | |
env: | |
USE_COVERAGE: lcov | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install dependencies | |
run: | | |
sudo apt-get install -qq -y lcov | |
- name: info | |
run: | | |
make -C test showcxxmacros | |
make -C test showcxxversion | |
make -C test check_stdlib | |
- name: specs | |
run: | | |
make -C test minimum_tests && ./test/minimum_tests --spec --feature | |
make -C test clean | |
- name: build | |
run: | | |
make -C test -j4 default | |
- name: test | |
run: | | |
make -C test test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: test-result | |
path: test/*.xml | |
- name: coverage | |
run: | | |
make -C test coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: test/coverage.info |