Skip to content

Commit

Permalink
update the GH worflow to target load test of prod environments
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Oct 14, 2024
1 parent 69404f5 commit 89c44d8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/locust-load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ jobs:
- name: Set up the dev container
uses: ./.github/actions/setup-dev-container

- name: Build the specified product, serve it, and perform a load test
# - name: Build the specified product, serve it, and perform a load test
# run: |
# devcontainer exec --workspace-folder ../sage-monorepo bash -c ". ./dev-env.sh \
# && nx run-many --target=build-image --projects=${{ inputs.product }}-*" \
# && nx serve-detach ${{ inputs.product }}-apex \
# && nx serve sandbox-locust --configuration=${{ inputs.product }}

- name: Perform a load test
run: |
devcontainer exec --workspace-folder ../sage-monorepo bash -c ". ./dev-env.sh \
&& nx run-many --target=build-image --projects=${{ inputs.product }}-*" \
&& nx serve-detach ${{ inputs.product }}-apex \
&& nx serve sandbox-locust --configuration=${{ inputs.product }}
&& nx run sandbox-locust:serve:${{ inputs.product }}
- name: Upload Locust reports as artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 89c44d8

Please sign in to comment.