Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Jul 22, 2024
1 parent b7bff64 commit 7ff86e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Configure npm caching
uses: actions/cache@v2
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
cache: npm
- name: Install dependencies
run: npm ci
- name: Run prettier
run: |-
npx --no-install prettier --check .
run: npm run style
- name: Run eslint
run: |-
npx --no-install eslint .
if: "! cancelled()"
run: npm run lint-
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"doc": "docs"
},
"scripts": {
"test": "eslint addon/*.js addon/content/*.js"
"lint": "eslint",
"style": "prettier --check ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 7ff86e8

Please sign in to comment.