diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b0d7cbd..b330b4a 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -30,4 +30,7 @@ jobs: with: version: "v0.8.1" # sccache version - - run: cargo hack check --locked + - name: Install sqlx-cli + run: cargo install sqlx-cli --locked + + - run: make migrate && cargo hack check --locked diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 348f415..c47d984 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -84,8 +84,11 @@ jobs: with: cache-on-failure: true + - name: Install sqlx-cli + run: cargo install sqlx-cli --locked + - name: Build Cargo project - run: cargo build --locked + run: make migrate && cargo build --locked - name: Run functional tests (1) id: funcTestsRun1 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 1d3814f..cab5d83 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -30,9 +30,12 @@ jobs: with: cache-on-failure: true + - name: Install sqlx-cli + run: cargo install sqlx-cli --locked + - name: Run tests run: | - cargo nextest run -p integration-tests --locked --profile ci --no-capture + make migrate && cargo nextest run -p integration-tests --locked --profile ci --no-capture - name: Test Summary uses: test-summary/action@v2 if: always() diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a3f736c..511b637 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,13 +16,19 @@ jobs: timeout-minutes: 60 steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly with: toolchain: nightly-2024-07-27 + - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - - run: SKIP_GUEST_BUILD=1 cargo clippy --workspace --lib --examples --tests --benches --all-features --all-targets --locked + + - name: Install sqlx-cli + run: cargo install sqlx-cli --locked + + - run: make migrate && SKIP_GUEST_BUILD=1 cargo clippy --workspace --lib --examples --tests --benches --all-features --all-targets --locked env: RUSTFLAGS: -D warnings diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 62d1573..f3b6d50 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -67,9 +67,12 @@ jobs: - name: Set RUST_LOG run: echo "RUST_LOG=${{ github.event.inputs.RUST_LOG }}" >> $GITHUB_ENV + - name: Install sqlx-cli + run: cargo install sqlx-cli --locked + - name: Run tests with coverage run: | - cargo llvm-cov --workspace --locked nextest --profile ci --lcov --output-path lcov.info + make migrate && cargo llvm-cov --workspace --locked nextest --profile ci --lcov --output-path lcov.info - name: Test Summary uses: test-summary/action@v2