Skip to content

Add testing with Cypress to main.yml #27

Add testing with Cypress to main.yml

Add testing with Cypress to main.yml #27

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20.10.0
- name: Install Dependencies
run: npm install
- name: Lint with ESLint
run: npm run lint
- name: Format with Prettier
run: npm run format
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
uses: cypress-io/github-action@v6
with:
start: npm run dev