diff --git a/.github/workflows/run_xk6_k6.yml b/.github/workflows/run_xk6_k6.yml deleted file mode 100644 index 163ed35..0000000 --- a/.github/workflows/run_xk6_k6.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: k6 Load Test - -on: - push: - branches: - - '**' - -jobs: - run-test: - runs-on: ubuntu-latest - container: docker://golang:1.17-alpine - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install xk6 - run: go install go.k6.io/xk6/cmd/xk6@latest - - - name: Build xk6-counter binary - run: xk6 build --with github.com/avitalique/xk6-file@latest - - - name: Run k6 to generate tokens - run: ./k6 run performance-tests/test/src/test.js - env: - env: ${{ secrets.YTENVIRONMENT }} - tokengenuser: ${{ secrets.TOKENGENUSER }} - tokengenuserpwd: ${{ secrets.TOKENGENPWD }} - K6_LOG_OUTPUT: stdout - - - name: Setup K6 - uses: grafana/setup-k6-action@v1 - - - name: Run local k6 test - uses: grafana/run-k6-action@v1 - with: - path: performance-tests/test/src/test.js - flags: --http-debug="full" - env: - serviceowner: ${{ secrets.OWNER }} - K6_LOG_OUTPUT: stdout - - - name: Upload test results - uses: actions/upload-artifact@v4 - if: always() - with: - name: summary-text - path: stdout.txt - - - name: Upload test results - uses: actions/upload-artifact@v4 - if: always() - with: - name: summary-html - path: summary.html - - - name: Upload test results - uses: actions/upload-artifact@v4 - if: always() - with: - name: summary-json - path: summary.json diff --git a/.github/workflows/taxreport-loadtest-ondemand.yml b/.github/workflows/taxreport-loadtest-ondemand.yml index 285ad89..7368fb0 100644 --- a/.github/workflows/taxreport-loadtest-ondemand.yml +++ b/.github/workflows/taxreport-loadtest-ondemand.yml @@ -1,10 +1,6 @@ name: k6 Load Test -on: - push: - branches: - - '**' - +on: workflow_dispatch jobs: run-test: runs-on: ubuntu-latest diff --git a/.github/workflows/taxreport-loadtest-schedule.yml b/.github/workflows/taxreport-loadtest-schedule.yml index 285ad89..f391a86 100644 --- a/.github/workflows/taxreport-loadtest-schedule.yml +++ b/.github/workflows/taxreport-loadtest-schedule.yml @@ -1,9 +1,8 @@ name: k6 Load Test on: - push: - branches: - - '**' + schedule: + - cron: "15 4 * * *" jobs: run-test: