Skip to content

Commit

Permalink
chore(ci): only run lint under Node.js v18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 17, 2023
1 parent dc4b04f commit 2fb1945
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,38 @@ jobs:
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache: 'npm'
- name: Upgrade npm # for workspace support
run: npm i -g npm
- name: Install Dependencies
uses: bahmutov/npm-install@1a235c31658a322a3b024444759650ee6345c26d # tag=v1
with:
useRollingCache: true
install-command: npm ci --foreground-scripts
- name: Lint
run: npm run lint
- name: Test
run: npm test

lint:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Upgrade npm # for workspace support
run: npm i -g npm
- name: Install Dependencies
uses: bahmutov/npm-install@1a235c31658a322a3b024444759650ee6345c26d # tag=v1
with:
useRollingCache: true
install-command: npm ci --foreground-scripts
- name: Lint
run: npm run lint

0 comments on commit 2fb1945

Please sign in to comment.