Merge branch 'chore/linting'
Some checks failed
🏗️ Build and Deploy / setup (push) Successful in 1m47s
🏗️ Build and Deploy / lint (push) Failing after 2s
🏗️ Build and Deploy / format (push) Failing after 2s
🏗️ Build and Deploy / typecheck (push) Failing after 1s
🏗️ Build and Deploy / build_and_deploy (push) Has been skipped
Some checks failed
🏗️ Build and Deploy / setup (push) Successful in 1m47s
🏗️ Build and Deploy / lint (push) Failing after 2s
🏗️ Build and Deploy / format (push) Failing after 2s
🏗️ Build and Deploy / typecheck (push) Failing after 1s
🏗️ Build and Deploy / build_and_deploy (push) Has been skipped
This commit is contained in:
@@ -7,42 +7,50 @@ on:
|
|||||||
env:
|
env:
|
||||||
PNPM_CACHE_FOLDER: .pnpm-store
|
PNPM_CACHE_FOLDER: .pnpm-store
|
||||||
|
|
||||||
x-templates:
|
|
||||||
setup-steps: &setup-steps
|
|
||||||
- name: 📑 Checkout Code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: 💾 Setup pnpm Cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ${{ env.PNPM_CACHE_FOLDER }}
|
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
|
|
||||||
- name: 📦 Install Dependencies
|
|
||||||
run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
setup:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: jimfx/nodes:latest
|
||||||
|
outputs:
|
||||||
|
workspace: ${{ steps.set_workspace.outputs.workspace }}
|
||||||
|
steps:
|
||||||
|
- name: 📑 Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 💾 Setup pnpm Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ env.PNPM_CACHE_FOLDER }}
|
||||||
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
|
||||||
|
- name: 📦 Install Dependencies
|
||||||
|
run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }}
|
||||||
|
|
||||||
|
- name: 📝 Set Workspace Output
|
||||||
|
id: set_workspace
|
||||||
|
run: echo "workspace=." >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
- <<: *setup-steps
|
|
||||||
- name: 🧹 Run Linter
|
- name: 🧹 Run Linter
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
- <<: *setup-steps
|
|
||||||
- name: 🎨 Check Formatting
|
- name: 🎨 Check Formatting
|
||||||
run: pnpm format:check
|
run: pnpm format:check
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
- <<: *setup-steps
|
|
||||||
- name: 🧬 Type Check
|
- name: 🧬 Type Check
|
||||||
run: pnpm check
|
run: pnpm check
|
||||||
|
|
||||||
@@ -52,8 +60,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
- <<: *setup-steps
|
|
||||||
|
|
||||||
- name: 🛠️ Build Site
|
- name: 🛠️ Build Site
|
||||||
run: pnpm run build:deploy
|
run: pnpm run build:deploy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user