feat(ci): run on every branch
Some checks failed
🏗️ Build and Deploy / setup (push) Failing after 1m16s
🏗️ Build and Deploy / lint (push) Has been skipped
🏗️ Build and Deploy / format (push) Has been skipped
🏗️ Build and Deploy / typecheck (push) Has been skipped
🏗️ Build and Deploy / build_and_deploy (push) Has been skipped
Some checks failed
🏗️ Build and Deploy / setup (push) Failing after 1m16s
🏗️ Build and Deploy / lint (push) Has been skipped
🏗️ Build and Deploy / format (push) Has been skipped
🏗️ Build and Deploy / typecheck (push) Has been skipped
🏗️ Build and Deploy / build_and_deploy (push) Has been skipped
This commit is contained in:
@@ -11,8 +11,6 @@ jobs:
|
|||||||
setup:
|
setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
outputs:
|
|
||||||
workspace: ${{ steps.set_workspace.outputs.workspace }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: 📑 Checkout Code
|
- name: 📑 Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,19 +20,29 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PNPM_CACHE_FOLDER }}
|
path: ${{ env.PNPM_CACHE_FOLDER }}
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-
|
||||||
|
|
||||||
- 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 }}
|
||||||
|
|
||||||
- name: 📝 Set Workspace Output
|
- name: 📤 Upload Workspace
|
||||||
id: set_workspace
|
uses: actions/upload-artifact@v4
|
||||||
run: echo "workspace=." >> $GITHUB_OUTPUT
|
with:
|
||||||
|
name: workspace-deps
|
||||||
|
path: .
|
||||||
|
include-hidden-files: true
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: 📥 Download Workspace
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: workspace-deps
|
||||||
|
path: .
|
||||||
- name: 🧹 Run Linter
|
- name: 🧹 Run Linter
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
|
|
||||||
@@ -43,6 +51,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: 📥 Download Workspace
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: workspace-deps
|
||||||
|
path: .
|
||||||
- name: 🎨 Check Formatting
|
- name: 🎨 Check Formatting
|
||||||
run: pnpm format:check
|
run: pnpm format:check
|
||||||
|
|
||||||
@@ -51,6 +64,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: 📥 Download Workspace
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: workspace-deps
|
||||||
|
path: .
|
||||||
- name: 🧬 Type Check
|
- name: 🧬 Type Check
|
||||||
run: pnpm check
|
run: pnpm check
|
||||||
|
|
||||||
@@ -60,6 +78,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: jimfx/nodes:latest
|
container: jimfx/nodes:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: 📥 Download Workspace
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: workspace-deps
|
||||||
|
path: .
|
||||||
|
|
||||||
- name: 🛠️ Build Site
|
- name: 🛠️ Build Site
|
||||||
run: pnpm run build:deploy
|
run: pnpm run build:deploy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user