瀏覽代碼

Create workflow pr.yml

Caijinglong 4 年之前
父節點
當前提交
a50278a940
No account linked to committer's email address
共有 1 個檔案被更改,包括 21 行新增0 行删除
  1. 21
    0
      .github/workflows/pr.yml

+ 21
- 0
.github/workflows/pr.yml 查看文件

@@ -0,0 +1,21 @@
1
+name: PR_CI
2
+
3
+on: [pull_request]
4
+
5
+jobs:
6
+  test:
7
+    name: Test on ${{ matrix.os }}
8
+    runs-on: ${{ matrix.os }}
9
+    strategy:
10
+      matrix:
11
+        os: [ubuntu-latest]
12
+    steps:
13
+      - uses: actions/checkout@v1
14
+      - uses: actions/setup-java@v1
15
+        with:
16
+          java-version: '12.x'
17
+      - uses: subosito/flutter-action@v1
18
+        with:
19
+          flutter-version: '1.9.1+hotfix.6'
20
+      - run: flutter pub get
21
+      - run: flutter analyze lib example/lib