Visitar URL original
Merge pull request #7660 from mruby/dependabot/github_actions/github-actions-dependencies-73dfd7d0f6 · mruby/mruby@eda5384 · GitHub
Skip to content

Merge pull request #7660 from mruby/dependabot/github_actions/github-… #1756

Merge pull request #7660 from mruby/dependabot/github_actions/github-…

Merge pull request #7660 from mruby/dependabot/github_actions/github-… #1756

Workflow file for this run

name: Coverage
on: [push]
permissions:
contents: read
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
submodules: true
- 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" --gcov-ignore-errors=source_not_found --merge-mode-functions=separate -e ".*_test.c" -e ".*/test/.*" -e ".*prism.*" -s --html-details -o coverage/ build
echo \`\`\`
} > "$GITHUB_STEP_SUMMARY"
- name: Upload coverage report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-${{ github.sha }}
path: coverage/
retention-days: 3