tests: adding some unit tests #9
This file contains hidden or 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: Code Coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| cover: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: xd009642/tarpaulin:develop-nightly | |
| options: --security-opt seccomp=unconfined | |
| services: | |
| redis: | |
| image: redis:5.0.7 | |
| ports: | |
| - 6379:6379 | |
| options: --entrypoint redis-server | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v3 | |
| - name: Install Redis | |
| run: | | |
| apt-get update | |
| apt-get install -y redis-server | |
| redis-server --daemonize yes | |
| redis-cli ping | |
| - name: Generate code coverage | |
| run: | | |
| cargo +nightly tarpaulin --verbose --workspace --timeout 120 --out xml | |
| - name: Upload To codecov.io | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} |