-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(test): add workflow for manually triggering windows tests (#2430)
* test(fargate): use execute on fargate test to run it on windows * test(unit): make bom test runnable on windows * test(cli): add windows tests to package.json * ci: add workflow for running windows tests * test(cli): temporarily disable unstable ts assertion * test(fargate): revert back to 51 workers
- Loading branch information
1 parent
a0b6328
commit f9b94ff
Showing
5 changed files
with
126 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Run Windows tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: windows-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
- run: npm install | ||
- run: npm run build | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
env: | ||
SHOW_STACK_TRACE: true | ||
with: | ||
aws-region: eu-west-1 | ||
role-to-assume: ${{ secrets.AWS_TEST_EXECUTION_ROLE_ARN_TEST5 }} | ||
role-session-name: OIDCSession | ||
mask-aws-account-id: true | ||
- name: Run local windows tests | ||
run: npm run test:windows --workspace artillery | ||
env: | ||
FORCE_COLOR: 1 | ||
- name: Run AWS windows tests | ||
run: npm run test:aws:windows --workspace artillery | ||
env: | ||
FORCE_COLOR: 1 | ||
ARTILLERY_CLOUD_ENDPOINT: ${{ secrets.ARTILLERY_CLOUD_ENDPOINT_TEST }} | ||
ARTILLERY_CLOUD_API_KEY: ${{ secrets.ARTILLERY_CLOUD_API_KEY_TEST }} | ||
GITHUB_REPO: ${{ github.repository }} | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
- name: Notify about failures | ||
if: failure() && github.ref == 'refs/heads/main' | ||
uses: 8398a7/action-slack@v3.15.1 | ||
with: | ||
status: ${{ job.status }} | ||
fields: repo,message,commit,author,eventName,job,took,pullRequest | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters