chore!: Update node to 20 and actions #121
This file contains 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: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: actions/checkout@v4 | |
- name: Restore Dependency Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }} | |
- run: npm install | |
- run: npm run lint | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
needs: | |
- lint | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: actions/checkout@v4 | |
- name: Restore Dependency Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }} | |
- run: npm install | |
- run: npm run build |