botsudo/action-shunit2

Sponsored OSS

By Wdes SAS / Sudo Bot

Updated almost 2 years ago

A GitHub action for shunit2 and kcov

Image
Languages & frameworks
Developer tools
0

9.0K

botsudo/action-shunit2 repository overview

action-shunit2

A GitHub action for shunit2 and kcov

Build docker image Test the action codecov

You can find the image on Docker Hub

Docker Pulls

The shunit2 website The Kcov website

Example usage

test.sh
#!/bin/sh

testEquality() {
  assertEquals 1 1
}

. shunit2
.github/workflows/<name>.yml
Example usage with tests
name: run tests

permissions:
  contents: read

on: [push]

jobs:
    tests:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v4
            - name: run my tests
              uses: sudo-bot/action-shunit2@latest
              with:
                  cli: "./tests/test.sh"
Example usage with a script and kcov
name: run tests

permissions:
  contents: read

on: [push]

jobs:
    tests:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v4

            - name: Run tests with kcov coverage
              uses: sudo-bot/action-shunit2@latest
              with:
                  cli: "kcov --dump-summary ./coverage ./tests/run.sh"

            - name: Upload coverage reports to Codecov
              uses: codecov/codecov-action@v4
              with:
                token: ${{ secrets.CODECOV_TOKEN }}
                directory: ./coverage/
                fail_ci_if_error: true

Tag summary

Content type

Image

Digest

sha256:9c8fd6d5e

Size

31.9 MB

Last updated

almost 2 years ago

docker pull botsudo/action-shunit2

This week's pulls

Pulls:

347

Jun 29 to Jul 5