Merge pull request #1153 from leonardomso/dependabot/npm_and_yarn/luc… #2083
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: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node 18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Lint | |
run: yarn lint | |
env: | |
CI: true | |
- name: Format | |
run: yarn format | |
env: | |
CI: true | |
- name: Typecheck | |
run: yarn typecheck | |
env: | |
CI: true | |
- name: Build | |
run: yarn build | |
env: | |
CI: true |