mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fcb665b88c
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Coverage
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
coverage:
|
|
name: Coverage
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
MRUBY_CONFIG: ci/gcc-clang
|
|
CC: clang-18
|
|
CXX: clang++-18
|
|
LD: clang-18
|
|
CFLAGS: -O0 -g --coverage
|
|
CXXFLAGS: -O0 -g --coverage
|
|
LDFLAGS: --coverage
|
|
steps:
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
uses: actions/checkout@v6
|
|
- name: Ruby version
|
|
run: ruby -v
|
|
- name: Compiler version
|
|
run: ${{ env.CC }} --version
|
|
- name: Build and test
|
|
run: rake test
|
|
- name: Install gcovr
|
|
run: pip install gcovr
|
|
- name: Generate coverage report
|
|
run: |
|
|
{
|
|
echo "# Coverage report"
|
|
echo \`\`\`
|
|
gcovr --gcov-executable "llvm-cov-18 gcov" -e ".*_test.c" -e ".*/test/.*" -s --html-details -o coverage/ build
|
|
echo \`\`\`
|
|
} > "$GITHUB_STEP_SUMMARY"
|
|
- name: Upload coverage report
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: coverage-${{ github.sha }}
|
|
path: coverage/
|
|
retention-days: 3
|