-
Notifications
You must be signed in to change notification settings - Fork 280
52 lines (46 loc) · 1.18 KB
/
Copy pathaft.yaml
File metadata and controls
52 lines (46 loc) · 1.18 KB
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
name: aft
on:
push:
branches:
- main
- stable
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 4.0.0
with:
submodules: true
# Needed for `git` but only ever used locally.
- name: Git Config
run: |
git config --global user.email "amplify-flutter@amazon.com"
git config --global user.name "Amplify Flutter"
- name: Setup Dart
uses: dart-lang/setup-dart@4e3affd8e7047e1cd1ec18b666954637c96fd70b # 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