5.3.1 #783
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: Node.js CI | |
on: | |
push: | |
branches: | |
- next | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Restore Yarn cache | |
uses: actions/cache@v3 | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Upgrade NPM | |
run: npm install -g npm | |
- name: Install Yarn Dependencies | |
run: yarn install --immutable | |
- name: Compile | |
run: yarn run build | |
lint: | |
name: Run Linter | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Restore Yarn cache | |
uses: actions/cache@v3 | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Upgrade NPM | |
run: npm install -g npm | |
- name: Install Yarn Dependencies | |
run: yarn install --immutable | |
- name: Run ESLint | |
run: yarn eslint ./src --ext .js,.jsx,.ts,.tsx |