Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
799953468 committed Jan 2, 2024
1 parent 742f667 commit 0933009
Show file tree
Hide file tree
Showing 6 changed files with 1,443 additions and 91 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: ["pull_request"]

name: Test Coveralls

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install pnpm
with:
version: 8
run_install: false
uses: pnpm/action-setup@v2
- name: pnpm install, make test-coverage
run: |
pnpm install
pnpm test-cov
- name: Coveralls
uses: coverallsapp/github-action@v2
24 changes: 24 additions & 0 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Tester

on: [push, pull_request]

jobs:
tester:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install pnpm
with:
version: 8
run_install: false
uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- name: Install dependencies
run: pnpm install
- name: build
run: pnpm build
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ dist-ssr
*.sw?

.env
coverage/
.nyc_output/
pnpm-lock.yaml
*.log
*.iml
.vscode/
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"eslint": "eslint scripts/ source/js test/",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"test": "mocha test/index.js",
"test-cov": "c8 npm test"
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
Expand All @@ -26,8 +28,11 @@
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@types/react-transition-group": "^4.4.10",
"@types/redux-persist": "^4.3.1",
"@vitejs/plugin-react": "^4.2.1",
"c8": "^8.0.1",
"coveralls": "^3.1.1",
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"prettier": "^3.1.1",
"sass": "^1.69.6",
"typescript": "^5.3.3",
Expand Down
Loading

0 comments on commit 0933009

Please sign in to comment.