Skip to content

Commit

Permalink
GitHub action check
Browse files Browse the repository at this point in the history
  • Loading branch information
Spytex committed Jul 14, 2023
1 parent fe9393f commit a62f029
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
name: Cypress Tests
name: E2E on Chrome

on:
push:
branches:
- master
pull_request:
branches:
- master
on: [push]

jobs:
build-and-test:
install:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Cypress run
uses: cypress-io/github-action@v3
with:
node-version: 14

- name: Install dependencies
run: npm ci

- name: Run Cypress tests
run: npm run cypress:run
project: ./site
browser: chrome
build: npm run build
start: npm run start
wait-on: "http://localhost:3000"
16 changes: 16 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},

component: {
devServer: {
framework: "next",
bundler: "webpack",
},
},
});

0 comments on commit a62f029

Please sign in to comment.