Skip to content

Commit 8ca6e2f

Browse files
committed
ci: 自动化分析
1 parent 3124141 commit 8ca6e2f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Flutter 分析
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
analyze:
11+
name: 运行 Flutter 分析
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: 签出代码
15+
uses: actions/checkout@v4
16+
17+
- name: 克隆鸿蒙 Flutter SDK
18+
run: |
19+
git clone --depth 1 --branch oh-3.32.4-dev https://gitcode.com/openharmony-tpc/flutter_flutter.git $HOME/flutter_ohos
20+
21+
- name: 设置 Flutter 环境
22+
run: |
23+
echo "FLUTTER_HOME=$HOME/flutter_ohos" >> $GITHUB_ENV
24+
echo "$HOME/flutter_ohos/bin" >> $GITHUB_PATH
25+
26+
- name: 验证 Flutter
27+
run: flutter --version
28+
29+
- name: 安装依赖
30+
run: flutter pub get
31+
32+
- name: 运行分析
33+
run: flutter analyze

0 commit comments

Comments
 (0)