From 22cfcf5c92e30a3e8167b5a42d56c4903bfb20f9 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 | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 07ce6b2..7884025 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -26,12 +26,6 @@ jobs: ruby-version: "3.3" 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 - - run: curl "${K6_RELEASE_ARTIFACT_URL}" -L | tar xvz --strip-components 1 - name: Start Servers working-directory: ./k6 run: | @@ -44,11 +38,8 @@ jobs: npx wait-on http://localhost:9291 --timeout 5s 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/setup-k6-action@v1 + - uses: grafana/run-k6-action@v1 + with: + path: | + ./k6/integration-test.js