Skip to content

Commit

Permalink
WIP: Run k6 in ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Sep 11, 2024
1 parent 2821b1c commit 28fddb7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,22 @@ jobs:
wait_time: 60 # check every minute
max_time: 1800 # allow up to 30 minutes for a deployment

- name: Setup k6
uses: grafana/setup-k6-action@v1

- name: Login to k6 cloud
env:
K6_CLOUD_TOKEN: ${{ secrets.GC_K6_TOKEN }}
run: k6 login cloud --token "$K6_CLOUD_TOKEN"

- name: Run k6 script
env:
K6_SIGNING_SECRET: ${{ secrets.K6_SIGNING_SECRET }}
run: |
just k6 frontend all --out cloud \
-e FRONTEND_URL=https://staging.openverse.org/ \
-e signing_secret="$K6_SIGNING_SECRET"
deploy-api:
name: Deploy staging API
runs-on: ubuntu-latest
Expand Down

0 comments on commit 28fddb7

Please sign in to comment.