diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 5507ee9..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Cypress Tests -on: [push] -jobs: - cypress-run: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Cypress run - uses: cypress-io/github-action@v4 - with: - build: npm run build - start: npm start diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..619d60d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Cypress Tests +on: + pull_request: + branches: [ main ] +jobs: + cypress-run: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Cypress run + uses: cypress-io/github-action@v5 + with: + build: npm run build + start: npm start