Skip to content

test: run fargate tests too #1087

test: run fargate tests too

test: run fargate tests too #1087

Workflow file for this run

name: Run tests
on:
push:
branches: [main, bernardobridge/art-1479-move-e2e-tests-from-artillery-pro-to-the-main-repo]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
publish-ecr-image:
permissions:
id-token: write
contents: read
secrets:
ECR_WORKER_IMAGE_PUSH_ROLE_ARN: ${{ secrets.ECR_WORKER_IMAGE_PUSH_ROLE_ARN }}
uses: ./.github/workflows/docker-ecs-worker-image.yml
test-cloud:
needs: publish-ecr-image
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- 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.ARTILLERY_AWS_CLI_ROLE_ARN_TEST1 }}
role-session-name: OIDCSession
mask-aws-account-id: true
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- run: npm install
- run: npm run build
- run: npm run test:cloud --workspace artillery
env:
ECR_IMAGE_VERSION: ${{ github.sha }}
# test:
# if: github.event.label.name == 'run-cloud-tests'
# timeout-minutes: 30
# runs-on: ubuntu-latest
# permissions:
# contents: read
# strategy:
# matrix:
# node-version: [18.x, 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
# - run: npm run test
# env:
# FORCE_COLOR: 1
# - 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 }}