on: push: branches: [main] pull_request: name: coverage jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: submodules: true - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: llvm-tools-preview - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage run: cargo llvm-cov --features test-full-imap --lcov --output-path lcov.info - name: Upload to codecov.io uses: codecov/codecov-action@v2 with: fail_ci_if_error: true services: cyrus_imapd: image: outoforder/cyrus-imapd-tester:latest ports: - 3025:25 - 3143:143 - 3465:465 - 3993:993