Skip to content

Commit

Permalink
run eslint and prettier in separate ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
lionralfs committed Oct 23, 2023
1 parent 20560aa commit 1d472ef
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ on:
branches: [ main ]

jobs:
lint:
# run lint in separate stage so we can use the latest nodejs
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run prettier
- run: npm run lint

build:

runs-on: ubuntu-latest
Expand All @@ -27,8 +44,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run prettier
- run: npm run lint
- run: npm test
- run: npm run build
- run: cd test/commonjs && node index.js

0 comments on commit 1d472ef

Please sign in to comment.