Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
90a03c33
Commit
90a03c33
authored
Mar 31, 2024
by
Timothy J. Baek
Browse files
refac: ci
parent
b391ad12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
18 deletions
+33
-18
.github/workflows/format-backend.yaml
.github/workflows/format-backend.yaml
+6
-1
.github/workflows/format-build-frontend.yaml
.github/workflows/format-build-frontend.yaml
+27
-16
package.json
package.json
+0
-1
No files found.
.github/workflows/format-backend.yaml
View file @
90a03c33
...
...
@@ -2,8 +2,13 @@ name: Python CI
on
:
push
:
branches
:
[
'
main'
]
branches
:
-
main
-
dev
pull_request
:
branches
:
-
main
-
dev
jobs
:
build
:
...
...
.github/workflows/format-build-frontend.yaml
View file @
90a03c33
name
:
Bun CI
name
:
Frontend Build
on
:
push
:
branches
:
[
'
main'
]
branches
:
-
main
-
dev
pull_request
:
branches
:
-
main
-
dev
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
-
name
:
Checkout Repository
uses
:
actions/checkout@v4
-
name
:
Setup Node.js
uses
:
actions/setup-node@v3
with
:
node-version
:
'
20'
# Or specify any other version you want to use
-
name
:
Install Dependencies
run
:
npm install
-
name
:
Format Frontend
run
:
npm run format
-
name
:
Check for Changes After Format
run
:
git diff --exit-code
-
name
:
Build frontend
if
:
always()
run
:
bun
run build
-
name
:
Build Frontend
run
:
npm
run build
package.json
View file @
90a03c33
...
...
@@ -13,7 +13,6 @@
"lint:types"
:
"npm run check"
,
"lint:backend"
:
"pylint backend/"
,
"format"
:
"prettier --plugin-search-dir --write '**/*.{js,ts,svelte,css,md,html,json}'"
,
"format:backend"
:
"yapf --recursive backend -p -i"
,
"i18n:parse"
:
"i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'"
},
"devDependencies"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment