Skip to content

Merge branch 'main' into k6-github-actions #1

Merge branch 'main' into k6-github-actions

Merge branch 'main' into k6-github-actions #1

name: k6 Performance benchmark tests
on:
workflow_dispatch:
inputs:
environment:
type: environment
description: "Choose an environment to run against"
required: true
jobs:
run-k6-tests:
runs-on: ubuntu-latest
if: github.event.inputs.environment == 'development' || github.event.inputs.environment == 'test'
defaults:
run:
working-directory: Dfe.Academies.Performance/scripts
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run k6 test
uses: grafana/k6-action@v0.3.1
with:
filename: suite.js
env:
BASE_URL: ${{ secrets.TRAMS_API_BASE_URL }}
API_KEY: ${{ secrets.TRAMS_API_KEY }}
- name: Upload report
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: summary
path: *.html

Check failure on line 35 in .github/workflows/performance-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/performance-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 35