feat: rewrite simple to prepared #1220
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| tests: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install CI deps | |
| run: bash integration/ci/install-deps.sh | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: "v1" # Change this when updating tooling | |
| - name: Setup PostgreSQL | |
| run: bash integration/ci/setup.sh --with-toxi | |
| - name: Run tests with coverage | |
| env: | |
| RUSTFLAGS: "--cfg tokio_unstable -C link-dead-code" | |
| run: | | |
| cargo llvm-cov clean --workspace | |
| cargo llvm-cov nextest --lcov --output-path lcov.info --no-fail-fast --test-threads=1 --filter-expr "package(pgdog) | package(pgdog-config) | package(pgdog-vector) | package(pgdog-stats) | package(pgdog-postgres-types)" | |
| - name: Run documentation tests | |
| run: cargo test --doc | |
| # Requires CODECOV_TOKEN secret for upload | |
| - uses: codecov/codecov-action@v4 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: lcov.info | |
| flags: unit | |
| fail_ci_if_error: true |