diff --git a/.github/workflows/schedule-cypress.yml b/.github/workflows/schedule-cypress.yml new file mode 100644 index 0000000..2b5b22d --- /dev/null +++ b/.github/workflows/schedule-cypress.yml @@ -0,0 +1,18 @@ +name: Costumer Journey - Job + +on: + schedule: + - cron: '*/10 * * * *' + +jobs: + cypress-run: + runs-on: ubuntu-22.04 + env: + working-directory: automation-tests + steps: + - name: Checkout + uses: actions/checkout@v4 + - run: npm install + working-directory: '${{ env.working-directory }}' + - run: npx cypress run --spec **/costumerJourney.cy.js + working-directory: '${{ env.working-directory }}'