Advertisement

← octto

.github/workflows/ci.yml

638 bytes Download file
name: Quality Gate

on:
  push:
    branches: [main]
  pull_request:

jobs:
  check:
    # Dependabot branches run the gate in dependabot-lockfile.yml, after the
    # lockfile is regenerated. Running it here too would always fail on the
    # frozen lockfile.
    if: github.actor != 'dependabot[bot]'
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v7

      - uses: oven-sh/setup-bun@v2
        with:
          bun-version: latest

      - name: Install dependencies
        run: bun install --frozen-lockfile

      - name: Quality gate
        run: bun run check

      - name: Build
        run: bun run build