chore: add testing workflow
This commit is contained in:
parent
1bc17581ec
commit
3f8dd2ac3f
2 changed files with 27 additions and 6 deletions
27
.github/workflows/tests.yml
vendored
Normal file
27
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: tests
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- renovate/*
|
||||
pull_request:
|
||||
jobs:
|
||||
tests:
|
||||
name: Tests
|
||||
runs-on: docker
|
||||
container:
|
||||
image: cypress/browsers:latest
|
||||
options: --user 1001
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
|
||||
- name: Enable corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: Cypress run
|
||||
uses: https://github.com/cypress-io/github-action@v6
|
||||
with:
|
||||
build: yarn run build
|
||||
start: yarn start
|
||||
component: true
|
|
@ -1,12 +1,6 @@
|
|||
import { defineConfig } from 'cypress';
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {
|
||||
// implement node event listeners here
|
||||
},
|
||||
},
|
||||
|
||||
component: {
|
||||
devServer: {
|
||||
framework: 'next',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue