mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 04:59:02 +08:00
test(*): add cypress and e2e tests
This commit is contained in:
18
.github/workflows/e2e.yml
vendored
Normal file
18
.github/workflows/e2e.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: End-to-end tests
|
||||
on: push
|
||||
jobs:
|
||||
cypress-run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
# Install npm dependencies, cache them correctly
|
||||
# and run all Cypress tests
|
||||
- name: Setup PNPM
|
||||
uses: pnpm/action-setup@v2.2.1
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v6
|
||||
with:
|
||||
build: pnpm build
|
||||
start: pnpm preview --port 5173
|
||||
browser: chrome
|
||||
3
.github/workflows/node.js.yml
vendored
3
.github/workflows/node.js.yml
vendored
@@ -5,9 +5,7 @@ name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=4096
|
||||
@@ -28,7 +26,6 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Setup PNPM
|
||||
# uses: pnpm/action-setup@35ab4267a1a21c8e8cb1c087cf1642e891ff57bd
|
||||
uses: pnpm/action-setup@v2.2.1
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm run lint
|
||||
|
||||
Reference in New Issue
Block a user