-
Notifications
You must be signed in to change notification settings - Fork 247
142 lines (122 loc) · 4.08 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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.3.0
- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # 4.0.0
with:
version: 9
- name: Setup aft
shell: bash # Run in bash regardless of platform
run: dart pub global activate -spath packages/aft
- name: aft link
run: aft link
- 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@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: 3.3.0
- name: Setup aft
shell: bash # Run in bash regardless of platform
run: dart pub global activate -spath packages/aft
- name: aft link
run: aft link
- 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:
# TODO(equartey): Change to `macos-latest` after github migrates their runners - https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
- macos-14
- 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.
# TODO(equartey): Change to `macos-latest` after github migrates their runners - https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
runs-on: macos-14-xlarge
# 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:
- "15.0"
- "17.5"
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: ubuntu-latest
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: "17"
- name: Test
timeout-minutes: 10
uses: ./.github/composite_actions/launch_android_emulator
with:
script: echo "Success!"