name: Tests
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
services:
dicedb:
image: dicedb/dicedb:latest
ports:
- 7379:7379
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: arduino/setup-protoc@v3.0.0
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Run tests with coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true