Skip to content

chore: Update AWS S3 bucket names for Terraform state backend #97

chore: Update AWS S3 bucket names for Terraform state backend

chore: Update AWS S3 bucket names for Terraform state backend #97

Workflow file for this run

name: Run Cypress
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build cypress
run: |
cd ./test/cypress
yarn
- name: run test
run: |
cd ./test/cypress
yarn cypress run --reporter mochawesome
- name: safe report as artifact
uses: actions/upload-artifact@v2
with:
name: mochawesome-report
path: test/cypress/mochawesome-report
upload:
if: ${{ !cancelled() && github.ref == 'refs/heads/main'}}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: get report as artifact
uses: actions/download-artifact@v2
with:
name: mochawesome-report
path: test/cypress/mochawesome-report
- uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: "test/cypress/mochawesome-report"