-
Notifications
You must be signed in to change notification settings - Fork 249
127 lines (111 loc) · 3.43 KB
/
actions.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: actions
on:
push:
branches:
- main
- stable
- next
paths:
- "actions/**/*.dart"
- "actions/**/*.yaml"
- "actions/**/*.json"
pull_request:
paths:
- "actions/**/*.dart"
- "actions/**/*.yaml"
- "actions/**/*.json"
schedule:
- cron: "0 0 * * 0" # Every Sunday at 00:00
defaults:
run:
shell: bash
permissions: read-all
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
- name: Setup Dart
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: 3.2.0-90.0.dev
- name: Setup pnpm
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # 2.4.0
with:
version: 8
- name: Get Packages
working-directory: actions
run: dart pub get
- name: Build Actions
working-directory: actions
run: dart tool/build.dart
test_runner:
name: Test Runner
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
- name: Setup Dart
uses: dart-lang/setup-dart@deafe40ee7284c48e67c783c88eed8c8b52b19ca # main
with:
sdk: 3.2.0-90.0.dev
- name: Get Packages
working-directory: actions
run: dart pub get
- name: Test
working-directory: actions
run: dart --enable-experiment=inline-class test -p node
test_setup_chromedriver:
name: Test Action (setup_chromedriver)
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Git Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
- name: Test
uses: ./.github/composite_actions/setup_chromedriver
test_launch_ios_simulator:
name: Test Action (launch_ios_simulator)
# It is recommended that all actions requiring a simulator be run on XL runners
# since the process of installing new runtimes and building with Xcode can be
# incredibly slow otherwise.
runs-on: macos-latest-xl
# Timeout as a stop-gap for further investigating. This action should never need more
# than 20 minutes to do its work.
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
ios-version:
- "14.5"
- "16"
steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
- name: Launch Simulator (iOS ${{ matrix.ios-version }})
uses: ./.github/composite_actions/launch_ios_simulator
with:
ios-version: ${{ matrix.ios-version }}
test_launch_android_emulator:
name: Test Action (launch_android_emulator)
runs-on:
labels: amplify-flutter_ubuntu-latest_4-core
steps:
- name: Git Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0
with:
distribution: "corretto" # Amazon Corretto Build of OpenJDK
java-version: "11"
- name: Test
timeout-minutes: 10
uses: ./.github/composite_actions/launch_android_emulator
with:
script: echo "Success!"