From 51ff419d8f82da547245a179e879a04080a4250d Mon Sep 17 00:00:00 2001 From: Daniel Stanila Date: Sat, 31 Oct 2026 20:04:54 +0100 Subject: [PATCH 1/2] Add GitHub Actions CI checks --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fa8ab9b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-26.04 + timeout-minutes: 15 + + steps: + - uses: actions/checkout@v7.0.1 + + - uses: oven-sh/setup-bun@v2.2.0 + with: + bun-version-file: package.json + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Check formatting + run: bun run format:check From 2e23a02d8dc0c48128a36c9a481ed30c227189da Mon Sep 17 00:00:00 2001 From: Daniel Stanila Date: Sun, 1 Nov 2026 14:57:05 +0100 Subject: [PATCH 2/2] Standardize CI around the greenlight check --- .github/workflows/ci.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa8ab9b..d2d5f0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,13 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: - verify: - runs-on: ubuntu-26.04 - timeout-minutes: 15 + format: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v7.0.1 @@ -26,3 +29,14 @@ jobs: - name: Check formatting run: bun run format:check + + greenlight: + if: always() + needs: [format] + runs-on: ubuntu-latest + + steps: + - name: Require all checks to succeed + env: + JOB_RESULTS: ${{ toJSON(needs) }} + run: jq --exit-status 'length > 0 and all(.[]; .result == "success")' <<< "$JOB_RESULTS"