From 5ce20674d03518f4047957aeff5cc59ed519eab5 Mon Sep 17 00:00:00 2001 From: Swayam Agrahari Date: Thu, 12 Dec 2024 20:13:25 +0530 Subject: [PATCH] Fix:Test failures by adding Dockerized Postgres --- .github/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e1b6cc..ca37106 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,9 +19,20 @@ jobs: - name: Set TEST_DATABASE_URL run: echo "TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/test_db" >> $GITHUB_ENV + - name: Install Rust and Cargo + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source $HOME/.cargo/env + + - name: Run Tests + run: cargo test + + + - uses: shuttle-hq/deploy-action@main with: name: "root" + no-test: "true" deploy-key: ${{ secrets.SHUTTLE_API_KEY }} secrets: | ROOT_SECRET = '${{ secrets.ROOT_SECRET }}'