From b6d3269478f925ec065a8ad1d4013a3000e330a1 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 2 Feb 2026 16:32:01 +0100 Subject: [PATCH] feat(ci): run on every branch --- .gitea/workflows/deploy.yaml | 44 ++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 33e81d6..672bc53 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -7,42 +7,50 @@ on: env: 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: + 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: + needs: setup runs-on: ubuntu-latest container: jimfx/nodes:latest steps: - - <<: *setup-steps - name: ๐Ÿงน Run Linter run: pnpm lint format: + needs: setup runs-on: ubuntu-latest container: jimfx/nodes:latest steps: - - <<: *setup-steps - name: ๐ŸŽจ Check Formatting run: pnpm format:check typecheck: + needs: setup runs-on: ubuntu-latest container: jimfx/nodes:latest steps: - - <<: *setup-steps - name: ๐Ÿงฌ Type Check run: pnpm check @@ -52,8 +60,6 @@ jobs: runs-on: ubuntu-latest container: jimfx/nodes:latest steps: - - <<: *setup-steps - - name: ๐Ÿ› ๏ธ Build Site run: pnpm run build:deploy