Skip to content

The PR raised by the codegen corresponds to the "CS-203" story. #20

The PR raised by the codegen corresponds to the "CS-203" story.

The PR raised by the codegen corresponds to the "CS-203" story. #20

Workflow file for this run

name: Run automation scripts
on:
pull_request:
types:
- closed
branches:
- main
jobs:
cypress-Automation-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: |
echo The PR was merged
- name: Run generated Cypress Automation scripts
run: |
pwd
ls
npm run test
- name: Generate report for cypress-
if: ${{ ! cancelled() }}
run: |
npm run generate-merge-report
- name: Install aws-cli
id: install-aws
if: ${{ ! cancelled() }}
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --update
- name: Upload cypress report folder to S3
if: always()
run: |
pwd
ls -l /home/runner/work/cypress-umesh/cypress-umesh/mochawesome-report
timestamp=$(date +"%Y-%m-%d-%H-%M-%S")
aws s3 cp --recursive /home/runner/work/cypress-umesh/cypress-umesh/mochawesome-report s3://testbucket-for-triggering/reports/${timestamp}/
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
AWS_DEFAULT_REGION: 'ap-south-1'