2024-01-03 22:37:21 +00:00
|
|
|
name: Bun CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ['main']
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-01-05 01:18:20 +00:00
|
|
|
name: 'Format & Build Frontend'
|
2024-01-03 22:37:21 +00:00
|
|
|
env:
|
|
|
|
PUBLIC_API_BASE_URL: ''
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Bun
|
|
|
|
uses: oven-sh/setup-bun@v1
|
|
|
|
- run: bun --version
|
2024-01-03 22:43:35 +00:00
|
|
|
- name: Install frontend dependencies
|
2024-01-05 04:39:19 +00:00
|
|
|
run: bun install
|
2024-01-03 22:43:35 +00:00
|
|
|
- name: Format frontend
|
|
|
|
run: bun run format
|
2024-03-28 23:42:50 +00:00
|
|
|
- name: Check for changes after format
|
|
|
|
run: git diff --exit-code
|
2024-01-03 22:43:35 +00:00
|
|
|
- name: Build frontend
|
2024-03-28 23:42:50 +00:00
|
|
|
if: always()
|
2024-01-03 22:43:35 +00:00
|
|
|
run: bun run build
|