Skip to content

Feature/footer collabs #153

Feature/footer collabs

Feature/footer collabs #153

Workflow file for this run

name: Setup Bun
on:
workflow_dispatch:
pull_request:
branches:
- main
- develop
types: [opened, edited, reopened, synchronize]
permissions:
contents: write
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2.0.2
- name: Install dependencies
run: bun install
- name: Check formatting
run: |
bun run prettier . --check || (echo "Formatting issues found. Please run bun run format locally." && exit 1)
pr-check:
needs: format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2.0.2
- name: Install dependencies
run: bun install
- name: Set environment variables
run: |
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> $GITHUB_ENV
echo "SUPABASE_ANON_KEY=${{ secrets.SUPABASE_ANON_KEY }}" >> $GITHUB_ENV
- name: Run build
run: bun run build