Skip to content

Fix the bug

Fix the bug #52

Workflow file for this run

name: Test the action
permissions:
contents: read
on: [push, workflow_dispatch]
jobs:
test:
name: Test the action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: get kcov version
uses: sudo-bot/action-shunit2@latest
with:
cli: "kcov --version"
- name: Run tests
uses: sudo-bot/action-shunit2@latest
with:
cli: "docker/tests/versions.sh ${{ github.workspace }}"
- name: Find files
run: find ./coverage -type f \( -name '*.json' -o -name '*.xml' \) -print
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
# kcov generates:
# - cov.xml
# - cobertura.xml
# - sonarqube.xml
# - coverage.json
# - codecov.json
directory: ./coverage/
fail_ci_if_error: true