diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000000..0bb6838131 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,21 @@ +name: Synpress tests + +on: + push: + branches: [cent-app/synpress-testing-setup, 'main'] + +jobs: + cypress-run: + runs-on: ubuntu-22.04 + defaults: + run: + working-directory: tests + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Synpress run + uses: cypress-io/github-action@v6 + with: + start: yarn e2e:run:ci + browser: chrome diff --git a/tests/package.json b/tests/package.json index fcf4c2b594..636544ebe0 100644 --- a/tests/package.json +++ b/tests/package.json @@ -5,7 +5,7 @@ "main": "index.js", "type": "module", "scripts": { - "e2e:run": "synpress run -cf synpress.config.ts", + "e2e:run": "synpress run -cf synpress.config.js", "e2e:run:ci": "synpress run -cf synpress.config.js --headless", "e2e:open": "synpress open -cf synpress.config.js" },