feat(ci): run on every branch
This commit is contained in:
@@ -7,8 +7,13 @@ on:
|
|||||||
env:
|
env:
|
||||||
PNPM_CACHE_FOLDER: .pnpm-store
|
PNPM_CACHE_FOLDER: .pnpm-store
|
||||||
|
|
||||||
x-templates:
|
jobs:
|
||||||
setup-steps: &setup-steps
|
setup:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: jimfx/nodes:latest
|
||||||
|
outputs:
|
||||||
|
workspace: ${{ steps.set_workspace.outputs.workspace }}
|
||||||
|
steps:
|
||||||
- name: 📑 Checkout Code
|
- name: 📑 Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -21,28 +26,31 @@ x-templates:
|
|||||||
- name: 📦 Install Dependencies
|
- name: 📦 Install Dependencies
|
||||||
run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }}
|
run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }}
|
||||||
|
|
||||||
jobs:
|
- 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