Skip to content

Commit

Permalink
benchmarks.yml: skip benchmarking if the DATABASE_URL is not set (#2701)
Browse files Browse the repository at this point in the history
* benchmarks.yml: skip benchmarking if the DATABASE_URL is not set

* try to expand the value

* workaround secrets not available in the `if:` condition

* only skip database / pytest step if missing creds
  • Loading branch information
masenf authored Feb 23, 2024
1 parent d698e4d commit 82e3be7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ env:

jobs:
reflex-web:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -66,9 +68,10 @@ jobs:
env:
LHCI_GITHUB_APP_TOKEN: $
- name: Run Benchmarks
# Only run if the database creds are available in this context.
if: ${{ env.DATABASE_URL }}
working-directory: ./integration/benchmarks
run: poetry run python benchmarks.py "$GITHUB_SHA" .lighthouseci
env:
GITHUB_SHA: ${{ github.sha }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PR_TITLE: ${{ github.event.pull_request.title }}

0 comments on commit 82e3be7

Please sign in to comment.