Update and rename main.yml to test.yml

This commit is contained in:
M. Schüpbach
2023-08-06 13:46:26 +02:00
committed by GitHub
parent f3924a7a50
commit 8cfcbd10ad
2 changed files with 19 additions and 13 deletions

View File

@@ -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

19
.github/workflows/test.yml vendored Normal file
View File

@@ -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