falkordb 0.1.6

A FalkorDB Rust client
Documentation
name: Code Coverage

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
  schedule:
      - cron: '0 0 * * *'  # This runs the workflow every day at midnight UTC

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

env:
  CARGO_TERM_COLOR: always

# Generate code coverage using llvm cov
jobs:
  coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Populate test graph
        run:  pip install falkordb && ./resources/populate_graph.py
      - uses: taiki-e/install-action@cargo-llvm-cov
      - uses: taiki-e/install-action@nextest
      - name: Generate Code Coverage
        run:  cargo llvm-cov nextest --all --features tokio --codecov --output-path codecov.json
      - name: Upload coverage reports to Codecov
        uses: codecov/codecov-action@v4
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: codecov.json
          fail_ci_if_error: true
    services:
      falkordb:
        image: falkordb/falkordb:edge
        ports:
          - 6379:6379