-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into wafv2-ipset
- Loading branch information
Showing
1,711 changed files
with
109,597 additions
and
29,576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "Dev Container Definition - AWS CDK", | ||
"image": "jsii/superchain", | ||
"postCreateCommand": "yarn build --skip-test --no-bail --skip-prereqs --skip-compat", | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint@2.1.5" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
name: Pull Request Linter | ||
description: Execute validation rules on GitHub Pull Requests | ||
inputs: | ||
check: | ||
description: "Which check to execute. Choose one of: [MANDATORY_CHANGES]" | ||
required: true | ||
runs: | ||
using: node12 | ||
main: index.js | ||
main: index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Closed Issue Message | ||
on: | ||
issues: | ||
types: [closed] | ||
jobs: | ||
auto_comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: aws-actions/closed-issue-message@v1 | ||
with: | ||
# These inputs are both required | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
message: | | ||
### ⚠️COMMENT VISIBILITY WARNING⚠️ | ||
Comments on closed issues are hard for our team to see. | ||
If you need more assistance, please either tag a team member or open a new issue that references this one. | ||
If you wish to keep having a conversation with other community members under this issue feel free to do so. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Yarn Upgrade | ||
|
||
on: | ||
schedule: | ||
# Every wednesday at 13:37 UTC | ||
- cron: 37 13 * * 3 | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
upgrade: | ||
name: Yarn Upgrade | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check Out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v2.1.0 | ||
with: | ||
node-version: 10 | ||
|
||
- name: Locate Yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Restore Yarn cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: |- | ||
${{ runner.os }}-yarn- | ||
- name: Install Tools | ||
run: |- | ||
npm -g install lerna npm-check-updates@^9.0.0 | ||
- name: List Mono-Repo Packages | ||
id: list-packages | ||
# These need to be ignored from the `ncu` runs! | ||
run: |- | ||
echo -n "::set-output name=list::" | ||
node -p "$(lerna ls --all --json 2>/dev/null).map(item => item.name).join(',')" | ||
- name: Run "ncu -u" | ||
# We special-case @types/node because we want to stay on the current major (minimum supported node release) | ||
# We special-case @types/fs-extra because the current major (9.x) is broken with @types/node >= 10 | ||
# We special-case parcel because we are currently on a pre-release and don't want to move to nightlies | ||
# We special-case aws-sdk because of breaking changes with TS interface exports in recent minor versions - https://github.com/aws/aws-sdk-js/issues/3453 | ||
# We special-case typescript because it's not semantically versionned | ||
run: |- | ||
# Upgrade dependencies at repository root | ||
ncu --upgrade --filter=@types/node,@types/fs-extra --target=minor | ||
ncu --upgrade --filter=typescript --target=patch | ||
ncu --upgrade --reject=@types/node,@types/fs-extra,parcel,typescript --target=minor | ||
# Upgrade all the packages | ||
lerna exec --parallel ncu -- --upgrade --filter=@types/node,@types/fs-extra --target=minor | ||
lerna exec --parallel ncu -- --upgrade --filter=typescript --target=patch | ||
lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/fs-extra,parcel,typescript,aws-sdk,${{ steps.list-packages.outputs.list }}' --target=minor | ||
# This will create a brand new `yarn.lock` file (this is more efficient than `yarn install && yarn upgrade`) | ||
- name: Run "yarn install --force" | ||
run: yarn install --force | ||
|
||
- name: Make Pull Request | ||
uses: peter-evans/create-pull-request@v2 | ||
with: | ||
# Git commit details | ||
branch: automation/yarn-upgrade | ||
commit-message: |- | ||
chore: npm-check-updates && yarn upgrade | ||
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. | ||
# Pull Request details | ||
title: 'chore: npm-check-updates && yarn upgrade' | ||
body: |- | ||
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. | ||
labels: contribution/core,dependencies | ||
team-reviewers: aws-cdk-team | ||
# Privileged token so automated PR validation happens | ||
token: ${{ secrets.AUTOMATION_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.