-
Notifications
You must be signed in to change notification settings - Fork 196
46 lines (39 loc) · 1.42 KB
/
nightly_repeated_unittest.yml
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
name: Amplify Nightly Repeated Unit Test
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'
permissions:
contents: read
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
unit_test_ios:
runs-on: macos-12
strategy:
matrix:
scheme: [Amplify, AWSPluginsCore, AWSPinpointAnalyticsPlugin, AWSAPIPlugin, AWSCognitoAuthPlugin, AWSDataStorePlugin, AWSLocationGeoPlugin, AWSS3StoragePlugin]
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Run repeated unit test iOS
uses: ./.github/composite_actions/run_xcodebuild_test
with:
project_path: .
scheme: ${{ matrix.scheme }}
other_flags: -test-iterations 100 -run-tests-until-failure
unit_test_macos:
runs-on: macos-12
strategy:
matrix:
scheme: [Amplify, AWSPluginsCore, AWSPinpointAnalyticsPlugin, AWSAPIPlugin, AWSCognitoAuthPlugin, AWSDataStorePlugin, AWSLocationGeoPlugin, AWSS3StoragePlugin]
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Run repeated unit test macOS
uses: ./.github/composite_actions/run_xcodebuild_test
with:
project_path: .
scheme: ${{ matrix.scheme }}
sdk: macosx
destination: platform=macOS,arch=x86_64
other_flags: -test-iterations 100 -run-tests-until-failure