Skip to content

Commit 98d83a9

Browse files
committed
chore: add test.lint and test.format
1 parent 8e54e06 commit 98d83a9

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,23 @@ jobs:
4040
with:
4141
fetch-depth: 0
4242
- name: Commit lint ✨
43-
uses: wagoid/commitlint-github-action@v1
44-
- uses: actions/setup-node@v1
43+
uses: wagoid/commitlint-github-action@v2
44+
45+
- uses: UziTech/action-setup-atom@v1
46+
- name: Setup PNPM
47+
uses: pnpm/[email protected]
4548
with:
46-
node-version: "12.x"
47-
- name: Install NPM dependencies
48-
run: |
49-
npm install
50-
- name: Lint ✨
51-
run: npm run lint
49+
version: latest
50+
51+
- name: Install dependencies
52+
run: pnpm install --only=dev --ignore-scripts
5253

54+
- name: Format ✨
55+
run: pnpm test.format
56+
57+
- name: Lint ✨
58+
run: pnpm test.lint
59+
5360
Release:
5461
needs: [Test, Lint]
5562
if: github.ref == 'refs/heads/master' &&

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
},
2222
"scripts": {
2323
"format": "prettier --write .",
24+
"test.format": "prettier . --check",
2425
"lint": "eslint . --fix",
26+
"test.lint": "eslint .",
2527
"test": "atom --test spec",
2628
"clean": "shx rm -rf dist modules",
2729
"babel": "npm run clean && shx cp -r lib dist && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=false babel dist --out-dir dist",

0 commit comments

Comments
 (0)