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 --all-features --lcov --output-path lcov.info env: TEST_HOST: greenmail - name: Upload to codecov.io uses: codecov/codecov-action@v2 with: fail_ci_if_error: true services: greenmail: image: greenmail/standalone:1.6.8 ports: - 3025:3025 - 3110:3110 - 3143:3143 - 3465:3465 - 3993:3993 - 3995:3995 env: GREENMAIL_OPTS: "-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose"