From 35c8f99439d6fe723aa9e1a32557d15bc0f08e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Wed, 11 Sep 2024 14:13:21 +0300 Subject: [PATCH] workflow: Fix code coverage. --- .github/workflows/code_coverage.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index bdff3576..a9ea48a1 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -2,12 +2,34 @@ name: Code Coverage Check on: [push] +env: + CARGO_TERM_COLOR: always + CARGO_TERM_VERBOSE: true + CARGOFLAGS: --workspace --all-targets --all-features + RUST_LOG: trace + RISC0_DEV_MODE: 1 + jobs: coverage: runs-on: ubicloud-standard-16 env: CARGO_TERM_COLOR: always + services: + postgres: + image: postgres:latest + env: + POSTGRES_DB: clementine + POSTGRES_USER: clementine + POSTGRES_PASSWORD: clementine + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + steps: - uses: actions/checkout@v4 - name: Install Rust