From d5c0f91a9f7ca1dff4987c77fa51754daab036ce Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Fri, 26 Dec 2025 19:53:11 +0100 Subject: [PATCH] ci: call checks before building docker image --- .github/workflows/{ci.yml => checks.yml} | 13 +++++++++---- .github/workflows/release.yml | 5 ++++- 2 files changed, 13 insertions(+), 5 deletions(-) rename .github/workflows/{ci.yml => checks.yml} (86%) diff --git a/.github/workflows/ci.yml b/.github/workflows/checks.yml similarity index 86% rename from .github/workflows/ci.yml rename to .github/workflows/checks.yml index 9a081d44..ba422b66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/checks.yml @@ -1,9 +1,7 @@ name: Checks -permissions: - contents: read - on: + workflow_call: pull_request: branches: - main @@ -11,8 +9,11 @@ on: branches: - main +permissions: + contents: read + jobs: - ci: + checks: timeout-minutes: 15 runs-on: ubuntu-latest steps: @@ -24,6 +25,10 @@ jobs: - name: Install dependencies uses: "./.github/actions/install-dependencies" + - name: Run lint + shell: bash + run: bun run lint:ci + - name: Run type checks shell: bash run: bun run tsc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 326ffa0f..48420d69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,12 @@ jobs: echo "release_type=release" >> $GITHUB_OUTPUT fi + checks: + uses: ./.github/workflows/checks.yml + build-images: timeout-minutes: 15 - needs: [determine-release-type] + needs: [determine-release-type, checks] runs-on: ubuntu-latest steps: - name: Checkout code