Skip to content

Run tests

Run tests #1146

Workflow file for this run

name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: windows-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- 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
- run: npm run test:windows --workspace artillery
env:
FORCE_COLOR: 1
ARTILLERY_TELEMETRY_DEFAULTS: '{\"source\":\"test-suite\"}'
ARTILLERY_CLOUD_ENDPOINT: ${{ secrets.ARTILLERY_CLOUD_ENDPOINT_TEST }}
ARTILLERY_CLOUD_API_KEY: ${{ secrets.ARTILLERY_CLOUD_API_KEY_TEST }}
- name: Notify about failures
if: failure() && github.ref == 'refs/heads/main'
uses: 8398a7/[email protected]
with:
status: ${{ job.status }}
fields: repo,message,commit,author,eventName,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}