diff --git a/.github/workflows/cypress_report.yml b/.github/workflows/cypress_report.yml index 0179174..3b9007d 100644 --- a/.github/workflows/cypress_report.yml +++ b/.github/workflows/cypress_report.yml @@ -1,4 +1,4 @@ -name: Cypress Tests +name: Cypress Master Branch CI/CD on: push: @@ -19,7 +19,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '18' + node-version: "20" - name: Install dependencies run: npm install diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f66bfba..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Simple Test Runner Cypress CI/CD -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: - - master - pull_request: - branches: ["master"] - -jobs: - cypress-run: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2.7.0 - - name: Cypress.io - uses: cypress-io/github-action@v5.5.1 - with: - browser: chrome diff --git a/.github/workflows/slackReport.yml b/.github/workflows/slackReport.yml deleted file mode 100644 index 523197d..0000000 --- a/.github/workflows/slackReport.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Cypress Test Suite - -on: - push: - branches: - - 'master' - -jobs: - cypress-run: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Cypress run - uses: cypress-io/github-action@v4 - with: - command: npm run cy:headless - - - name: Uploading artifact - uses: actions/upload-artifact@v2 - if: always() - with: - name: cypress-execution-report - path: cypress/reports/html - retention-days: 30 - - - name: Slack Notification - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_USERNAME: mahbub - SLACK_TITLE: End-2-End Tests - SLACK_MESSAGE: "Let's be Awesome :rocket:" - SLACK_COLOR: ${{ job.status }}