-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 757 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (29 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
# 与 byte-code 的差异:挂到 push/PR 常跑(那边仅手动),
# 工具链版本与 release.yml 统一(Flutter 3.47.2 / JDK 17)。
on:
push:
branches: [master, main]
pull_request:
workflow_dispatch:
jobs:
flutter:
name: Flutter analyze / test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.47.2
channel: stable
cache: true
- name: Pub get
run: flutter pub get
- name: Analyze
run: flutter analyze
- name: Test
run: flutter test