ci: 🤖 setup CI/CD #3
Workflow file for this run
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: main | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup pnpm@8 | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: ⎔ Setup Node@18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: 📥 Download deps | |
run: pnpm install | |
- name: 🏗 Build | |
run: pnpm build | |
- name: 🔍 Verify types | |
run: pnpm type-check | |
- name: 🕵️ Lint | |
run: pnpm lint:prod | |
- name: 💅 Verify format (`pnpm format` committed?) | |
run: pnpm format | |
- name: 🛡️ Test | |
run: pnpm test |