chore(deps): bump actions/checkout from 5.0.0 to 6.0.0 (#106) #385
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint and Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| prepare_matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| versions: ${{ steps.generate-matrix.outputs.lts }} | |
| steps: | |
| - name: Select all current LTS versions of Node.js | |
| id: generate-matrix | |
| uses: msimerson/node-lts-versions@v1 | |
| lint-and-build: | |
| runs-on: macos-latest | |
| needs: | |
| - prepare_matrix | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }} | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build |