🫨 fix: apply schema changes, and fix associated tests and fe #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backend CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
should-run-checks: | |
runs-on: ubuntu-latest | |
if: | | |
github.event.pull_request.draft == false && | |
github.actor != 'dependabot[bot]' | |
outputs: | |
should-run: ${{ steps.check.outputs.should-run }} | |
steps: | |
- id: check | |
run: echo "should-run=true" >> $GITHUB_OUTPUT | |
backend-checks: | |
needs: should-run-checks | |
if: needs.should-run-checks.outputs.should-run == 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: cd backend && bun install | |
- name: Check formatting | |
run: cd backend && bun format:check | |
- name: Run linter | |
run: cd backend && bun lint:fix | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v2 | |
- name: Install Docker Compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
- name: Run tests | |
run: cd backend && bun run test |