From bb244c76ef46292e885ffa7398892b1ab334d23c Mon Sep 17 00:00:00 2001 From: Priyanshu Verma Date: Sat, 27 Jan 2024 23:29:20 +0530 Subject: [PATCH] [CI] Add env variables for tests --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bc4312..bd86c76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,10 @@ name: CI jobs: checks: runs-on: ubuntu-latest + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + PRIVATE_ENCRPYPTION_KEY: ${{ secrets.PRIVATE_ENCRPYPTION_KEY }} + steps: - name: Checkout uses: actions/checkout@v3 @@ -48,10 +52,9 @@ jobs: - name: Tests run: | + cargo test --release crud cargo test --release api cargo test --release bot - env: - DATABASE_URL: ${{ secrets.DATABASE_URL }} - name: Bootstrap fly uses: superfly/flyctl-actions/setup-flyctl@master