Merge pull request #63 from SetupCoding/update-to-node24 #283
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: CI | |
| on: [push] | |
| env: | |
| node_version: "12.x" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ env.node_version }} | |
| - name: Cache node_modules | |
| uses: actions/cache@v1 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.OS }}-node_modules- | |
| - name: Install JS dependencies | |
| run: ls package-lock.json && npm install || yarn install | |
| - name: Lint | |
| run: ls package-lock.json && npm run lint || yarn lint |