Skip to content

Commit

Permalink
Merge pull request #2962 from aws/release-v1.60.0
Browse files Browse the repository at this point in the history
Release 1.60.0 (to main)
  • Loading branch information
aahung authored Feb 27, 2023
2 parents 48eb41d + 49927a6 commit 480be09
Show file tree
Hide file tree
Showing 377 changed files with 264,635 additions and 162,593 deletions.
3 changes: 3 additions & 0 deletions .cfnlintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ ignore_templates:
- tests/translator/output/**/connector_sfn_to_function.json
- tests/translator/output/**/connector_sns_to_function.json
- tests/translator/output/**/connector_table_to_function.json
- tests/translator/output/**/documentdb_with_intrinsics.json # TODO: remove once DocumentDDB is available
- tests/translator/output/**/eventbridgerule_with_dlq.json
- tests/translator/output/**/function_event_conditions.json
- tests/translator/output/**/function_with_alias_and_code_sha256.json
Expand All @@ -77,6 +78,8 @@ ignore_templates:
- tests/translator/output/**/function_with_deployment_preference_multiple_combinations_conditions_without_passthrough.json
- tests/translator/output/**/function_with_deployment_preference_passthrough_condition_with_supported_intrinsics.json
- tests/translator/output/**/function_with_dlq.json
- tests/translator/output/**/function_with_documentdb_with_kms.json # TODO: remove once DocumentDDB is available
- tests/translator/output/**/function_with_documentdb.json # TODO: remove once DocumentDDB is available
- tests/translator/output/**/function_with_event_dest.json
- tests/translator/output/**/function_with_event_dest_basic.json
- tests/translator/output/**/function_with_event_dest_conditional.json
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/check_compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check compatibility

on:
pull_request:

jobs:
check-compatibility:
runs-on: ubuntu-latest

steps:
- name: Checkout the PR
uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Extract PR public interfaces
run: |
make init
bin/public_interface.py extract > "${{ runner.temp }}"/interfaces.new.json
- name: Backup PR bin/public_interface.py
run: |
# Keep a copy of bin/public_interface.py
# So we are using the same bin/public_interface.py to process old/new codebase.
cp bin/public_interface.py "${{ runner.temp }}"/public_interface.py
- name: Checkout the base
uses: actions/checkout@v3
with:
ref: "${{ github.base_ref }}"

- name: Extract original public interfaces
run: |
make init
# Recover bin/public_interface.py
cp "${{ runner.temp }}"/public_interface.py bin/public_interface.py
bin/public_interface.py extract > "${{ runner.temp }}"/interfaces.original.json
- name: Detect compatibility breaking changes
id: detect
run: |
bin/public_interface.py check "${{ runner.temp }}"/interfaces.original.json "${{ runner.temp }}"/interfaces.new.json
45 changes: 45 additions & 0 deletions .github/workflows/schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update schema

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1-5" # Weekdays

jobs:
update:
if: github.repository == 'aws/serverless-application-model'
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Update schema
id: schema
run: |
make init
make schema-all
# Sets condition steps.schema.outputs.changed to true if anything changed
git diff --exit-code || echo "changed=true" >> $GITHUB_OUTPUT
- name: Push change to temporary branch
if: steps.schema.outputs.changed
run: |
git config user.name github-actions
git config user.email [email protected]
git checkout -b tmp/schema/$GITHUB_RUN_ID/$GITHUB_RUN_ATTEMPT
git add -u
git commit -m "chore(schema): update"
git push --set-upstream origin tmp/schema/$GITHUB_RUN_ID/$GITHUB_RUN_ATTEMPT
- name: Create PR
if: steps.schema.outputs.changed
run: printf '> **Note**\n> If checks do not start, close then reopen this pull request.\n\nCreated by the [`schema.yml`](https://github.com/aws/serverless-application-model/blob/develop/.github/workflows/schema.yml) workflow.\n' | gh pr create --fill --base develop --body-file -
env:
GH_TOKEN: ${{ github.token }}
Loading

0 comments on commit 480be09

Please sign in to comment.