Skip to content

Commit

Permalink
ci: check for format and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Aug 27, 2023
1 parent b296282 commit afca1dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
run: corepack enable
- name: Install dependencies
run: npm ci
- name: Check for formatting errors
run: npm run ci:fmt
- name: Check for linting errors
run: npm run ci:lnt
- name: Link module
run: npm link nw-builder
- name: Prepare test environment
run: npm run test:prep
- name: Run unit tests
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"scripts": {
"postinstall": "npm run test:prep",
"ci:fmt": "prettier --check \"./**/*.{css,html,js,json,md,yml}\"",
"ci:lnt": "eslint --config=cfg/eslint.config.cjs cfg src test",
"ci:lnt": "eslint --config=cfg/eslint.config.cjs src test",
"fmt": "prettier --write \"./**/*.{css,html,js,json,md,yml}\"",
"lnt": "eslint --config=cfg/eslint.config.cjs --fix cfg src test",
"lnt": "eslint --config=cfg/eslint.config.cjs --fix src test",
"test:prep": "esbuild src/index.js --bundle --platform=node --outfile=./dist/index.cjs",
"test:unit": "node --test test/unit/detectCurrentPlatform.js ",
"test:tape": "tape './test/*.cjs'",
Expand Down

0 comments on commit afca1dd

Please sign in to comment.