Skip to content

Commit

Permalink
refactor: Move load tests to their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Dec 11, 2023
1 parent 3207eef commit 5010d2b
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/manual-load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
if: always()
uses: grafana/[email protected]
with:
filename: k6/graphql/components.js
filename: k6/load-tests/graphql/components.js
cloud: ${{ inputs.cloud }}
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
flags: --env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{ env.ENABLE_GQL_SERVER_SIDE_CACHE }}
Expand All @@ -47,7 +47,7 @@ jobs:
if: always()
uses: grafana/[email protected]
with:
filename: k6/graphql/observations.js
filename: k6/load-tests/graphql/observations.js
cloud: ${{ inputs.cloud }}
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
flags: --env ENV=${{ env.ENV }} --env ENABLE_GQL_SERVER_SIDE_CACHE=${{ env.ENABLE_GQL_SERVER_SIDE_CACHE }}
Expand All @@ -56,7 +56,7 @@ jobs:
if: always()
uses: grafana/[email protected]
with:
filename: k6/har/${{ env.ENV }}/edition.js
filename: k6/load-tests/har/${{ env.ENV }}/edition.js
cloud: ${{ inputs.cloud }}
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
flags: --env ENABLE_GQL_SERVER_SIDE_CACHE=${{ env.ENABLE_GQL_SERVER_SIDE_CACHE }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions k6/utils.js → k6/load-tests/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export const PROJECT_ID = 3643757;

export const DISTRIBUTION = {
paris: { loadZone: "amazon:fr:paris", percent: 100 },
paris: {
loadZone: "amazon:fr:paris",
percent: 100,
},
};

0 comments on commit 5010d2b

Please sign in to comment.