fix: ignore and workflow #2
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: CI/CD Workflow | |
on: [push, pull_request] | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache Node Modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('bun.lockb') }} | |
- run: bun i | |
- run: bun run format | |
lint: | |
name: Code Lint | |
runs-on: ubuntu-latest | |
needs: format | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache Node Modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('bun.lockb') }} | |
- run: bun i | |
- run: bun run lint | |
typecheck: | |
name: Typecheck | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache Node Modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('bun.lockb') }} | |
- run: bun i | |
- run: bun run typecheck | |
commitlint: | |
name: Commit Lint | |
runs-on: ubuntu-latest | |
needs: typecheck | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: bun i | |
- run: bunx commitlint --from HEAD~1 --to HEAD --verbose |