Parcourir la source

Create workflow pr.yml

Caijinglong il y a 4 ans
Parent
révision
a50278a940
No account linked to committer's email address
1 fichiers modifiés avec 21 ajouts et 0 suppressions
  1. 21
    0
      .github/workflows/pr.yml

+ 21
- 0
.github/workflows/pr.yml Voir le fichier

@@ -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