Skip to content

Commit f17ba17

Browse files
authored
chore: kickoff release
2 parents b10b7e4 + 0bd8ff6 commit f17ba17

File tree

90 files changed

+3636
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3636
-230
lines changed

.circleci/config.yml

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,92 @@
22

33
version: 2.1
44

5+
orbs:
6+
# Using inline orb for now
7+
getting-started-smoke-test:
8+
orbs:
9+
macos: circleci/macos@2
10+
node: circleci/[email protected]
11+
ruby: circleci/[email protected]
12+
commands:
13+
run-with-retry:
14+
description: Run command with retry
15+
parameters:
16+
label:
17+
description: Display name
18+
type: string
19+
command:
20+
description: Command to run
21+
type: string
22+
retry-count:
23+
description: Number of retry
24+
type: integer
25+
default: 3
26+
sleep:
27+
description: Wait duration until next retry
28+
type: integer
29+
default: 5
30+
no_output_timeout:
31+
description: Elapsed time the command can run without output
32+
type: string
33+
default: 10m
34+
steps:
35+
- run:
36+
name: << parameters.label >>
37+
command: |
38+
retry() {
39+
MAX_RETRY=<< parameters.retry-count >>
40+
n=0
41+
until [ $n -ge $MAX_RETRY ]
42+
do
43+
<< parameters.command >> && break
44+
n=$[$n+1]
45+
sleep << parameters.sleep >>
46+
done
47+
if [ $n -ge $MAX_RETRY ]; then
48+
echo "failed: ${@}" >&2
49+
exit 1
50+
fi
51+
}
52+
retry
53+
no_output_timeout: << parameters.no_output_timeout >>
54+
jobs:
55+
ios:
56+
parameters:
57+
xcode-version:
58+
type: string
59+
default: 13.3.0
60+
simulator-device:
61+
type: string
62+
default: iPhone 13
63+
simulator-os-version:
64+
type: string
65+
default: "15.4"
66+
working_directory: ~/ios-canaries/canaries/example
67+
macos:
68+
xcode: <<parameters.xcode-version>>
69+
environment:
70+
FL_OUTPUT_DIR: output
71+
# Add steps to the job
72+
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
73+
steps:
74+
- checkout:
75+
path: ~/ios-canaries
76+
- node/install
77+
- run: npm install -g @aws-amplify/cli
78+
- run: amplify init --quickstart --frontend ios
79+
- macos/preboot-simulator:
80+
device: <<parameters.simulator-device>>
81+
version: <<parameters.simulator-os-version>>
82+
- ruby/install-deps
83+
- run-with-retry:
84+
label: Run pod install
85+
command: pod install
86+
no_output_timeout: 20m
87+
- run-with-retry:
88+
label: Run tests
89+
command: bundle exec fastlane scan
90+
591
defaults: &defaults
692
macos:
793
xcode: '13.0.0'
@@ -249,6 +335,9 @@ deploy_requires: &deploy_requires
249335

250336
workflows:
251337
build_test_deploy:
338+
when:
339+
not:
340+
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
252341
jobs:
253342
- checkout_code
254343
- install_gems:
@@ -342,4 +431,20 @@ workflows:
342431
branches:
343432
only:
344433
- release
345-
434+
435+
# Scheduled smoke test workflow
436+
# Jobs are pulled from the getting-started-smoke-test inline orb defined below
437+
canaries:
438+
when:
439+
and:
440+
- equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
441+
- equal: [ "Canaries", << pipeline.schedule.name >> ]
442+
jobs:
443+
- getting-started-smoke-test/ios:
444+
xcode-version: "13.3.0"
445+
simulator-os-version: "15.4"
446+
simulator-device: "iPhone 13"
447+
- getting-started-smoke-test/ios:
448+
xcode-version: "12.5.1"
449+
simulator-os-version: "14.5"
450+
simulator-device: "iPhone 12"

.github/CODEOWNERS

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
* @aws-amplify/amplify-ios
1+
* @aws-amplify/amplify-ios
2+
3+
# This covers
4+
# - Amplify/Categories/DataStore/**
5+
# - Amplify/Categories/API/**
6+
# - AmplifyPlugins/DataStore/**
7+
# - AmplifyPlugins/API/**
8+
# - AmplifyPlugins/Core/AWSPuginsCore/**
9+
# - AmplifyTests/CategoryTests/DataStore/**
10+
# - AmplifyTestCommon/Models
11+
**/DataStore/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
12+
**/API/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
13+
**/Core/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
14+
/AmplifyTestCommon/Models/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
15+
/.circleci @aws-amplify/amplify-data @aws-amplify/amplify-ios
16+
/.github @aws-amplify/amplify-data @aws-amplify/amplify-ios
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Feature request label added.
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
project:
12+
name: Feature request message
13+
runs-on: ubuntu-latest
14+
if: ${{ github.event.label.name == 'feature-request' }}
15+
16+
steps:
17+
- name: add feature request comment
18+
shell: bash
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
ISSUE_NUMBER: ${{ github.event.issue.number }}
22+
run: |
23+
gh issue comment $ISSUE_NUMBER --repo aws-amplify/amplify-ios -b "This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!"

0 commit comments

Comments
 (0)