pptr 0.3.0

Type-Driven Asynchronous Actor Runtime
Documentation
name: Code Coverage

on:
  push:
    branches:
      - master

jobs:
  coverage:
    name: Coverage
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Install nightly toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          override: true
          components: llvm-tools-preview

      - name: Cache dependencies
        uses: Swatinem/rust-cache@v2

      - name: Run tests and generate coverage reports
        run: |
          cargo test --all-features --no-fail-fast
          cargo install cargo-tarpaulin
          cargo tarpaulin --tests --doc --out Xml

      - name: Upload coverage reports to Codecov
        uses: codecov/codecov-action@v4.0.1
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          slug: ribelo/pptr
          files: ./cobertura.xml
          flags: unittests
          name: codecov-umbrella
          fail_ci_if_error: true