1
- # Generated with aft. To update, run: `aft generate workflows`
2
1
name : aft
3
2
on :
4
3
push :
5
4
branches :
6
5
- main
7
6
- stable
8
7
- next
8
+ paths :
9
+ - ' packages/aft/**/*.dart'
9
10
pull_request :
10
11
paths :
11
12
- ' packages/aft/**/*.dart'
12
- - ' packages/aft/**/*.yaml'
13
- - ' packages/aft/lib/**/*'
14
- - ' packages/aft/test/**/*'
15
- - ' .github/workflows/dart_vm.yaml'
16
- - ' .github/workflows/dart_native.yaml'
17
- - ' .github/workflows/aft.yaml'
18
13
schedule :
19
14
- cron : " 0 0 * * 0" # Every Sunday at 00:00
20
15
defaults :
@@ -24,12 +19,34 @@ permissions: read-all
24
19
25
20
jobs :
26
21
test :
27
- uses : ./.github/workflows/dart_vm.yaml
28
- with :
29
- working-directory : packages/aft
30
- native_test :
31
- if : ${{ github.event_name == 'push' }}
32
- needs : test
33
- uses : ./.github/workflows/dart_native.yaml
34
- with :
35
- working-directory : packages/aft
22
+ name : Test
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Git Checkout
26
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0
27
+ with :
28
+ submodules : true
29
+
30
+ # Needed for `git` but only ever used locally.
31
+ - name : Git Config
32
+ run : |
33
+ git config --global user.email "[email protected] "
34
+ git config --global user.name "Amplify Flutter"
35
+
36
+ - name : Setup Dart
37
+ uses : dart-lang/setup-dart@196f54580e9eee2797c57e85e289339f85e6779d # main
38
+ with :
39
+ sdk : stable
40
+
41
+ - name : Get Packages
42
+ working-directory : packages/aft
43
+ run : |
44
+ # Patch libgit2dart (see https://github.com/dart-lang/pub/issues/3563)
45
+ ( cd external/libgit2dart; git apply ../libgit2dart.patch )
46
+ dart pub upgrade
47
+ mkdir linux
48
+ cp external/libgit2dart/linux/*.so linux
49
+
50
+ - name : Run Tests
51
+ working-directory : packages/aft
52
+ run : dart test
0 commit comments