Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

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:
format:
runs-on: ubuntu-latest

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

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"
Loading