Skip to content

fix: ignore and workflow #2

fix: ignore and workflow

fix: ignore and workflow #2

Workflow file for this run

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