From 8cfcbd10adf187cb35d35ae53dc1151fc2c01c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Sch=C3=BCpbach?= Date: Sun, 6 Aug 2023 13:46:26 +0200 Subject: [PATCH] Update and rename main.yml to test.yml --- .github/workflows/main.yml | 13 ------------- .github/workflows/test.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/test.yml 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