Skip to content

Commit

Permalink
chore: setup cypress CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 3, 2021
1 parent dc472c0 commit d12bd3e
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- master

jobs:
build:
test:
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -47,6 +47,11 @@ jobs:
- name: Test
run: nr test

- name: Cypress
uses: cypress-io/github-action@v2
with:
start: pnpm run cy:fixture

lint:
runs-on: ubuntu-latest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"dev": "nodemon -w '../../packages/slidev/dist/*.js' --exec 'slidev --log=info'",
"dev": "nodemon -w '../../../packages/slidev/dist/*.js' --exec 'slidev --log=info'",
"build": "slidev build",
"export": "slidev export"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions cypress/fixtures/example.json

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"test": "jest",
"test:update": "jest -u",
"cy": "cypress open",
"cy:fixture": "pnpm -C cypress/fixtures/basic run dev",
"release": "zx scripts/release.mjs",
"ci:publish": "zx scripts/publish.mjs"
},
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
- packages/*
- demo/*
- cypress/fixtures/*

0 comments on commit d12bd3e

Please sign in to comment.