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
0b1dd21a
Unverified
Commit
0b1dd21a
authored
Jan 04, 2024
by
ThatOneCalculator
Browse files
feat:
👷
seperate lint jobs for fe & be
parent
9d3652db
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
7 deletions
+49
-7
.github/workflows/format-backend.yaml
.github/workflows/format-backend.yaml
+1
-4
.github/workflows/format-build-frontend.yaml
.github/workflows/format-build-frontend.yaml
+1
-3
.github/workflows/lint-backend.yaml
.github/workflows/lint-backend.yaml
+27
-0
.github/workflows/lint-frontend.yaml
.github/workflows/lint-frontend.yaml
+20
-0
No files found.
.github/workflows/
python
.yaml
→
.github/workflows/
format-backend
.yaml
View file @
0b1dd21a
...
...
@@ -5,7 +5,7 @@ on:
pull_request
:
jobs
:
build
:
name
:
'
Format
Backend'
# Format & Lint
name
:
'
Format
Backend'
env
:
PUBLIC_API_BASE_URL
:
'
'
runs-on
:
ubuntu-latest
...
...
@@ -23,8 +23,5 @@ jobs:
run
:
|
python -m pip install --upgrade pip
pip install yapf
# pip install pylint
# - name: Lint backend
# run: bun run lint:backend
-
name
:
Format backend
run
:
bun run format:backend
.github/workflows/
bun
.yaml
→
.github/workflows/
format-build-frontend
.yaml
View file @
0b1dd21a
...
...
@@ -5,7 +5,7 @@ on:
pull_request
:
jobs
:
build
:
name
:
'
Format
&
Build
Frontend'
# Format, Lint, & Build
name
:
'
Format
&
Build
Frontend'
env
:
PUBLIC_API_BASE_URL
:
'
'
runs-on
:
ubuntu-latest
...
...
@@ -16,8 +16,6 @@ jobs:
-
run
:
bun --version
-
name
:
Install frontend dependencies
run
:
bun install --frozen-lockfile
# - run: bun run lint
# - run: bun run lint:types
-
name
:
Format frontend
run
:
bun run format
-
name
:
Build frontend
...
...
.github/workflows/lint-backend.yaml
0 → 100644
View file @
0b1dd21a
name
:
Python CI
on
:
push
:
branches
:
[
'
main'
]
pull_request
:
jobs
:
build
:
name
:
'
Lint
Backend'
env
:
PUBLIC_API_BASE_URL
:
'
'
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node-version
:
-
latest
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Use Python
uses
:
actions/setup-python@v4
-
name
:
Use Bun
uses
:
oven-sh/setup-bun@v1
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install pylint
-
name
:
Lint backend
run
:
bun run lint:backend
.github/workflows/lint-frontend.yaml
0 → 100644
View file @
0b1dd21a
name
:
Bun CI
on
:
push
:
branches
:
[
'
main'
]
pull_request
:
jobs
:
build
:
name
:
'
Lint
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 --frozen-lockfile
-
run
:
bun run lint
-
run
:
bun run lint:types
\ No newline at end of file
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