Skip to content

Commit d2db863

Browse files
committed
chore: add test.lint and test.format
1 parent a8429fd commit d2db863

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,22 @@ jobs:
4141
with:
4242
fetch-depth: 0
4343
- name: Commit lint ✨
44-
uses: wagoid/commitlint-github-action@v1
45-
- uses: actions/setup-node@v1
44+
uses: wagoid/commitlint-github-action@v2
45+
46+
- uses: UziTech/action-setup-atom@v1
47+
- name: Setup PNPM
48+
uses: pnpm/[email protected]
4649
with:
47-
node-version: "12.x"
48-
# - name: Install NPM dependencies
49-
# run: |
50-
# npm install
50+
version: latest
51+
52+
- name: Install dependencies
53+
run: pnpm install --only=dev --ignore-scripts
54+
55+
- name: Format ✨
56+
run: pnpm test.format
57+
5158
# - name: Lint ✨
52-
# run: npm run lint
59+
# run: pnpm test.lint
5360

5461
Release:
5562
needs: [Test, Lint]

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
],
1212
"license": "MIT",
1313
"scripts": {
14-
"format": "prettier --write ."
14+
"format": "prettier --write .",
15+
"test.format": "prettier . --check",
16+
"lint": "eslint . --fix",
17+
"test.lint": "eslint ."
1518
},
1619
"engines": {
1720
"atom": ">=1.0.0 <2.0.0"

0 commit comments

Comments
 (0)