mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
26 lines
593 B
YAML
26 lines
593 B
YAML
name: Bun CI
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
name: 'Format & Build Frontend'
|
|
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
|
|
- name: Install frontend dependencies
|
|
run: bun install
|
|
- name: Format frontend
|
|
run: bun run format
|
|
- name: Check for changes after format
|
|
run: git diff --exit-code
|
|
- name: Build frontend
|
|
if: always()
|
|
run: bun run build
|