diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index f83c1f064f..e6d4c2ba7e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -28,7 +28,30 @@ jobs: 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@9 # npm@9 supports our supported Node.js versions + - 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