-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: eslint/prettier combination also with github actions
- Loading branch information
Showing
14 changed files
with
1,863 additions
and
1,637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ env: | |
es2021: true | ||
extends: | ||
- standard | ||
- prettier | ||
parserOptions: | ||
ecmaVersion: latest | ||
rules: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,24 +15,36 @@ jobs: | |
matrix: | ||
node: [14,16] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@master | ||
- name: Shell Linter | ||
uses: azohra/[email protected] | ||
- name: Cache node_modules | ||
id: cache-modules | ||
|
||
- name: Cache node modules | ||
id: cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: install check deps | ||
run: npm install npm-check mocha eslint | ||
- name: eslint | ||
run: ./scripts/lint.sh | ||
- run: npm ci | ||
path: node_modules # npm cache files are stored in `~/.npm` on Linux/macOS | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
- name: Prettier | ||
run: npm run fmt:check | ||
|
||
- name: ESlint | ||
run: npm run eslint:github-action | ||
|
||
- name: Shell Linter | ||
uses: azohra/[email protected] | ||
|
||
# - run: npm test | ||
release: | ||
runs-on: ubuntu-latest | ||
|
Oops, something went wrong.