From 236dd7c2098b18535559da73fc6294137c36509f Mon Sep 17 00:00:00 2001 From: Wyatt Verchere Date: Mon, 13 Nov 2023 19:15:18 -0800 Subject: [PATCH] Adds env variables to tarp --- .github/workflows/coverage-tarp.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage-tarp.yml b/.github/workflows/coverage-tarp.yml index b4ec5429..03424252 100644 --- a/.github/workflows/coverage-tarp.yml +++ b/.github/workflows/coverage-tarp.yml @@ -17,11 +17,23 @@ jobs: # Start Docker Compose - name: Start Docker Compose run: docker-compose up -d + - name: Install cargo tarpaulin uses: taiki-e/install-action@cargo-tarpaulin - - name: Generate code coverage + - name: Generate code coverage run: | - cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml + cargo tarpaulin --verbose --all-features --timeout 120 --out xml + env: + BACKBLAZE_BUCKET_ID: ${{ secrets.BACKBLAZE_BUCKET_ID }} + BACKBLAZE_KEY: ${{ secrets.BACKBLAZE_KEY }} + BACKBLAZE_KEY_ID: ${{ secrets.BACKBLAZE_KEY_ID }} + S3_ACCESS_TOKEN: ${{ secrets.S3_ACCESS_TOKEN }} + S3_SECRET: ${{ secrets.S3_SECRET }} + S3_URL: ${{ secrets.S3_URL }} + S3_REGION: ${{ secrets.S3_REGION }} + S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} + SQLX_OFFLINE: true + DATABASE_URL: postgresql://labrinth:labrinth@localhost/postgres - name: Upload to codecov.io uses: codecov/codecov-action@v2