Skip to content

Commit

Permalink
add-prettier: Add github action to check by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
maskeynihal committed Oct 12, 2023
1 parent 21d7b7b commit 1aa8b23
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,22 @@ jobs:

- name: Test i18n packs integrity
run: npm run test:i18n-packs

prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
run: npm ci

- name: Test with prettier
run: npm run test:prettier
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"test:eslint:fix": "npm run test:eslint -- --fix",
"test:stylelint": "stylelint 'src/**/*.scss' --config node_modules/do-bulma/.stylelintrc.json",
"test:i18n-packs": "node --es-module-specifier-resolution=node src/nginxconfig/i18n/verify.js",
"test:prettier": "npm run prettier:check",
"prepare": "husky install",
"prettier": "prettier --write 'src/**/*.{js,vue}'",
"prettier:check": "prettier 'src/**/*.{js,vue}' --check"
Expand Down

0 comments on commit 1aa8b23

Please sign in to comment.