A GitHub action for shunit2 and kcov
You can find the image on Docker Hub
The shunit2 website The Kcov website
#!/bin/shtestEquality() {
assertEquals 1 1
}
. shunit2name: run testspermissions:
contents: readon: [push]jobs:
tests:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- name: run my testsuses: sudo-bot/action-shunit2@latestwith:
cli: "./tests/test.sh"name: run testspermissions:
contents: readon: [push]jobs:
tests:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- name: Run tests with kcov coverageuses: sudo-bot/action-shunit2@latestwith:
cli: "kcov --dump-summary ./coverage ./tests/run.sh"
- name: Upload coverage reports to Codecovuses: codecov/codecov-action@v4with:
token: ${{ secrets.CODECOV_TOKEN }}directory: ./coverage/fail_ci_if_error: true