From cc2f59f3be60c919a54f76e26dca3716825480f7 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 10 Mar 2021 21:12:20 +0530 Subject: [PATCH] CI: sqlx requires env var --- .github/workflows/linux.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e38d6cb4..701205e6 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -67,6 +67,9 @@ jobs: with: command: check args: --all --bins --examples --tests + env: + DATABASE_URL: postgres://postgres:password@localhost:5432/postgres + - name: tests uses: actions-rs/cargo@v1 @@ -74,6 +77,9 @@ jobs: with: command: test args: --all --all-features --no-fail-fast + env: + DATABASE_URL: postgres://postgres:password@localhost:5432/postgres + - name: Generate coverage file if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request') @@ -81,6 +87,9 @@ jobs: with: version: '0.15.0' args: '-t 1200' + env: + DATABASE_URL: postgres://postgres:password@localhost:5432/postgres + - name: Upload to Codecov if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')