diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e70003cc..542d6464 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,7 +20,7 @@ jobs: "ubuntu-latest", "macOS-latest" ] - node-version: [18.x, 20.x, 22.5.1] + node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule # at https://nodejs.org/en/about/releases/ @@ -36,6 +36,31 @@ jobs: - name: Install dependencies run: npm ci --verbose + - uses: actions/upload-artifact@master + with: + name: dependencies-dist-${{ matrix.os }}-${{ matrix.node-version }} + path: node_modules + + Lint: + runs-on: ubuntu-latest + strategy: + matrix: + os: [ + "windows-latest", + "ubuntu-latest", + "macOS-latest" + ] + node-version: [18.x, 20.x, 22.x] + steps: + - name: Checkout repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + + - name: Artifacts + uses: actions/download-artifact@master + with: + name: dependencies-dist-${{ matrix.os }}-${{ matrix.node-version }} + path: node_modules + - name: Lint run: npm run lint