Update Deployment.tsx #739
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: [14.x, 16.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- 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: [14.x, 16.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 | |
uses: stefanoeb/[email protected] | |
with: | |
files: ./src |