Skip to content

Commit 12a0cc6

Browse files
authored
Add format workflow (deepseek-ai#452)
* Add format workflow * Remove debug code
1 parent 79bbb54 commit 12a0cc6

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/format.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Code Format Check
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
format-check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup environment
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y bash
23+
24+
- name: Run format.sh
25+
run: |
26+
bash ./format.sh
27+
28+
# If format.sh return non-zero, GitHub Actions will mark it as failure.

0 commit comments

Comments
 (0)