From e986dd1b5a9b04c8ccdab0164fb88955f0e1bdc0 Mon Sep 17 00:00:00 2001 From: Cassidy Scheffer Date: Thu, 17 Oct 2024 11:23:58 -0400 Subject: [PATCH] k6 latests --- .github/workflows/integration.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 07ce6b2..b6f32d6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -27,9 +27,7 @@ jobs: bundler-cache: true - name: Install k6 - working-directory: ./k6 - env: - K6_RELEASE_ARTIFACT_URL: https://github.com/grafana/k6/releases/download/v0.37.0/k6-v0.37.0-linux-amd64.tar.gz + uses: grafana/setup-k6-action@v1 run: curl "${K6_RELEASE_ARTIFACT_URL}" -L | tar xvz --strip-components 1 - name: Start Servers @@ -45,10 +43,7 @@ jobs: npx wait-on http://localhost:8888 --timeout 5s - name: Run Integration Test - working-directory: ./k6 - run: | - ./k6 \ - -e GITHUB_PR=${{ github.event.number }} \ - -e GITHUB_SHA=${{ github.sha }} \ - -e GITHUB_TOKEN=${{secrets.GH_PA_TOKEN}} \ - run integration-test.js + uses: grafana/run-k6-action@v1 + with: + path: | + ./k6/integration-test.js