diff --git a/.github/workflows/performance-tests-pr.yml b/.github/workflows/performance-tests-pr.yml index 04368252cd..748c84445d 100644 --- a/.github/workflows/performance-tests-pr.yml +++ b/.github/workflows/performance-tests-pr.yml @@ -21,11 +21,12 @@ jobs: image: grafana/k6:latest options: -v ${{ github.workspace }}:/root -u root run: | + mkdir -p /root/ touch /root/summary.txt echo "$(k6 run --tag testid=DataCubeComponents --env ENV=PR --env ENDPOINT=${{ github.event.deployment_status.target_url }}/api/graphql --env CUBE_IRI=https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9 --env CUBE_LABEL=Photovoltaikanlagen/9 --env ROOT_PATH=/root/ --env CHECK_TIMING=true --quiet - /root/summary.txt - name: Set env variable for easier access run: | - echo "SUMMARY=$(< summary.txt)" >> $GITHUB_ENV + echo "SUMMARY=$(< ${{ github.workspace }}/summary.txt)" >> $GITHUB_ENV - name: GQL performance tests ❌ if: ${{ env.SUMMARY != '' }} run: | diff --git a/k6/performance-tests/generate-github-actions.mjs b/k6/performance-tests/generate-github-actions.mjs index a9f967ebdd..510f8fdc8e 100644 --- a/k6/performance-tests/generate-github-actions.mjs +++ b/k6/performance-tests/generate-github-actions.mjs @@ -103,11 +103,12 @@ jobs: image: grafana/k6:latest options: -v \${{ github.workspace }}:/root -u root run: | + mkdir -p /root/ touch /root/summary.txt echo "$(${commands})" > /root/summary.txt - name: Set env variable for easier access run: | - echo "SUMMARY=$(< summary.txt)" >> $GITHUB_ENV + echo "SUMMARY=$(< \${{ github.workspace }}/summary.txt)" >> $GITHUB_ENV - name: GQL performance tests ❌ if: \${{ env.SUMMARY != '' }} run: |