From 63322a2c5694bc25727ed5516c96bf0ac60e3a07 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Fri, 29 Aug 2025 13:25:02 +0200 Subject: [PATCH] use artifacts instead of checkout --- .github/workflows/ci.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22a0ac7..6d89418 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,20 +8,8 @@ on: workflow_dispatch: jobs: - lint: - runs-on: ubuntu-latest - container: - image: oven/bun - steps: - - uses: actions/checkout@v4 - - name: Install Biome - run: bun install -g biome - - name: Run Biome lint - run: biome lint . - build: runs-on: ubuntu-latest - needs: lint container: image: oven/bun steps: @@ -30,6 +18,25 @@ jobs: run: bun install - name: Build run: bun run build + - name: Create Artifact + uses: actions/upload-artifact@v4 + with: + name: build + + lint: + runs-on: ubuntu-latest + needs: build + container: + image: oven/bun + steps: + - name: Download Artifact + uses: actions/download-artifact@v4 + with: + name: build + - name: Install Biome + run: bun install -g biome + - name: Run Biome lint + run: biome lint . build-and-push-docker: needs: [build]