34 lines
709 B
YAML
34 lines
709 B
YAML
name: Cypress Tests
|
|
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the develop branch
|
|
push:
|
|
branches: [develop]
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
cypress-run:
|
|
runs-on: ubuntu-latest
|
|
# container: cypress/browsers:node16.13.2-chrome97-ff96
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build the application
|
|
run: npm run build
|
|
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v4
|
|
with:
|
|
start: npm run preview
|