Skip to content

test: add unit testing. #1

test: add unit testing.

test: add unit testing. #1

Workflow file for this run

name: Codecov
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Upload Codecov
steps:
- uses: actions/checkout@v4
- name: Run tests and collect coverage
run: cargo test --verbose
- name: Upload coverage reports to Codecov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml