-
Notifications
You must be signed in to change notification settings - Fork 249
53 lines (47 loc) · 1.19 KB
/
aft.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: aft
on:
push:
branches:
- main
- stable
- next
paths:
- "packages/aft/**/*.dart"
pull_request:
paths:
- "packages/aft/**/*.dart"
schedule:
- cron: "0 0 * * 0" # Every Sunday at 00:00
defaults:
run:
shell: bash
permissions: read-all
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
with:
submodules: true
# Needed for `git` but only ever used locally.
- name: Git Config
run: |
git config --global user.email "[email protected]"
git config --global user.name "Amplify Flutter"
- name: Setup Dart
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: stable
- name: Get Packages
working-directory: packages/aft
run: dart pub upgrade
- name: Save Repo State
working-directory: packages/aft
run: |
dart pub get
dart bin/aft.dart save-repo-state
- name: Run Tests
working-directory: packages/aft
run: dart test