From cf4c6065a1e87cc9bc14dd04d10534388294bf24 Mon Sep 17 00:00:00 2001 From: Riley Barabash Date: Sat, 21 Dec 2024 00:42:32 -0700 Subject: [PATCH] fix: ci workflow --- .github/workflows/{lint.yml => ci.yml} | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) rename .github/workflows/{lint.yml => ci.yml} (74%) diff --git a/.github/workflows/lint.yml b/.github/workflows/ci.yml similarity index 74% rename from .github/workflows/lint.yml rename to .github/workflows/ci.yml index cfa0b70..262c318 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI/CD Workflow +name: CI on: [push, pull_request] @@ -10,8 +10,10 @@ 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') }} @@ -19,15 +21,17 @@ jobs: - 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') }} @@ -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: