refactor: workflow (#1034) #163
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: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
paths-ignore: | |
- "docs/docs/**" | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Monorepo | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code 🛎 | |
uses: actions/checkout@main | |
- name: Install Node | |
uses: actions/setup-node@main | |
with: | |
cache: "npm" | |
node-version: "lts/*" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run prettier | |
run: npm run prettier | |
- name: Run ESLint | |
run: npm run lint | |
- name: Build | |
run: npm run build | |
- name: Run Tests | |
run: npm run test |