ci: setup basic CI #1
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, check lint and format | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn run lint | |
- name: Format | |
run: npm run format:check | |
- name: Build | |
run: npm run build |