Skip to content

Commit 17c90ed

Browse files
committed
ci: parallel run test and lint
1 parent 2498526 commit 17c90ed

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.clean-publish

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"withoutPublish": true,
33
"tempDir": "package",
4-
"files": [".eslintrc.json", "**/*.spec.js"]
4+
"fields": ["scripts", "publishConfig"],
5+
"files": ["**/*.spec.js"]
56
}

.github/workflows/tests.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,23 @@ jobs:
2828
- name: Install dependencies
2929
run: pnpm install
3030
- name: Run tests
31-
run: pnpm test
31+
run: pnpm test:unit
32+
lint:
33+
runs-on: ubuntu-latest
34+
name: lint
35+
steps:
36+
- name: Checkout the repository
37+
uses: actions/checkout@v4
38+
- name: Install pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 10
42+
- name: Install Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
cache: 'pnpm'
47+
- name: Install dependencies
48+
run: pnpm install
49+
- name: Lint files
50+
run: pnpm lint

0 commit comments

Comments
 (0)