Test kcov action #21
Workflow file for this run
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: Test kcov action | |
permissions: | |
contents: read | |
on: [push] | |
jobs: | |
test: | |
name: Test the action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: get kcov version | |
uses: sudo-bot/action-kcov@latest | |
with: | |
cli-args: "--version" | |
- name: Example with a bash script (running on Docker kcov/kcov) | |
uses: sudo-bot/action-kcov@latest | |
with: | |
cli-args: "--dump-summary ./coverage ./.github/workflows/test.sh" | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
# Must be set in the repo or org settings as a secret | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./coverage/ | |
fail_ci_if_error: true |