Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
pull_request:
branches: [main]
types: [opened, synchronize]

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest]
node-version: [22.x]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install deps
run: |
pnpm i --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
.idea/
.pnpm-store/

coverage/
dist/
storybook-static/
fanciers-echarts-react-*.tgz
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"scripts": {
"dev": "storybook dev",
"test": "vitest",
"prepack": "tsdown",
"lint": "tsc --noEmit"
},
Expand All @@ -46,7 +47,8 @@
"storybook-react-rsbuild": "^2.1.0",
"swr": "^2.3.6",
"tsdown": "^0.14.2",
"typescript": "^5.9.2"
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"peerDependencies": {
"echarts": "^6.0.0",
Expand Down
Loading