Skip to content

Commit

Permalink
fix: ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
inducingchaos committed Dec 21, 2024
1 parent 13e8f12 commit cf4c606
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/lint.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI/CD Workflow
name: CI

on: [push, pull_request]

Expand All @@ -10,24 +10,28 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Node Modules
uses: actions/cache@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- 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
name: Lint
runs-on: ubuntu-latest
needs: format
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Node Modules
uses: actions/cache@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('bun.lockb') }}
Expand All @@ -42,16 +46,18 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Node Modules
uses: actions/cache@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- 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
commit-message:
name: Commit Message
runs-on: ubuntu-latest
needs: typecheck
steps:
Expand Down

0 comments on commit cf4c606

Please sign in to comment.