-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See [CHANGELOG](https://github.com/aws/jsii/blob/bump/1.10.0/CHANGELOG.md)
- Loading branch information
Showing
253 changed files
with
7,320 additions
and
4,237 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
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,255 @@ | ||
# Workflows pertaining to the main/master branch | ||
name: Main | ||
|
||
on: | ||
pull_request: | ||
branches: [main, master] | ||
push: | ||
branches: [main, master] | ||
|
||
env: | ||
DOTNET_NOLOGO: true | ||
|
||
# This workflows currently has the following jobs: | ||
# - build : Builds the source tree as-is | ||
# - test : Runs all unit tests against the build result | ||
# - create-release-package : Prepares a release package with the "real" version | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Set up all of our standard runtimes | ||
- name: Set up .NET 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- name: Set up Java 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '8' | ||
- name: Set up Node 12 | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '12' | ||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.6' | ||
- name: Install python3-venv | ||
run: sudo apt install -y python3-venv | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Locate Caches | ||
id: cache-locations | ||
run: |- | ||
# Need to have PIP >= 20.1 for "pip cache dir" to work | ||
python3 -m pip install --upgrade pip | ||
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" | ||
echo "::set-output name=yarn-cache::$(yarn cache dir)" | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: |- | ||
${{ steps.cache-locations.outputs.pip-cache }} | ||
${{ steps.cache-locations.outputs.yarn-cache }} | ||
~/.m2/repository | ||
~/.nuget/packages | ||
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: |- | ||
${{ runner.os }}-node@12-python@3.6- | ||
${{ runner.os }}-node@12- | ||
${{ runner.os }}- | ||
# Prepare dependencies and build | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Full Build | ||
run: yarn build | ||
- name: "Upload Artifact: built-tree" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: built-tree | ||
path: |- | ||
${{ github.workspace }} | ||
!**/.env/** | ||
!**/node_modules/** | ||
!**/project/.m2/** | ||
create-release-package: | ||
name: Create Release Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Set up all of our standard runtimes | ||
- name: Set up .NET 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- name: Set up Java 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '8' | ||
- name: Set up Node 12 | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: '12' | ||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.6' | ||
- name: Install python3-venv | ||
run: sudo apt install -y python3-venv | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Locate Caches | ||
id: cache-locations | ||
run: |- | ||
# Need to have PIP >= 20.1 for "pip cache dir" to work | ||
python3 -m pip install --upgrade pip | ||
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" | ||
echo "::set-output name=yarn-cache::$(yarn cache dir)" | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: |- | ||
${{ steps.cache-locations.outputs.pip-cache }} | ||
${{ steps.cache-locations.outputs.yarn-cache }} | ||
~/.m2/repository | ||
~/.nuget/packages | ||
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: |- | ||
${{ runner.os }}-node@12-python@3.6- | ||
${{ runner.os }}-node@12- | ||
${{ runner.os }}- | ||
# Prepare dependencies and build | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
# Determine a prerelease version (depending on whether this is a PR or Push event) | ||
- name: Standard Version (PR) | ||
if: github.event_name == 'pull_request' | ||
run: |- | ||
npx standard-version \ | ||
--compareUrlFormat='{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...${{ github.sha }}' \ | ||
--prerelease=pr${{ github.event.pull_request.number }} \ | ||
--skip.commit | ||
- name: Standard Version (Nightly) | ||
if: github.event_name == 'push' | ||
run: |- | ||
npx standard-version \ | ||
--compareUrlFormat='{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...${{ github.sha }}' \ | ||
--prerelease=nightly.$(date -u +'%Y%m%d') \ | ||
--skip.commit | ||
# Now we'll be preparing a release package (with the "real" version) | ||
- name: Align Versions | ||
run: ./scripts/align-version.sh | ||
- name: Full Build | ||
run: yarn build | ||
- name: Package Libraries | ||
run: yarn package | ||
- name: "Upload Artifact: release-package" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-package | ||
path: ${{ github.workspace }}/dist/ | ||
test: | ||
name: Test (${{ matrix.os }} / java ${{ matrix.java }} / node ${{ matrix.node }} / python ${{ matrix.python }}) | ||
needs: build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# All currently supported node versions (Maintenance LTS, Active LTS, Current) | ||
dotnet: ['3.1.x'] | ||
java: ['8'] | ||
node: ['10', '12', '14'] | ||
os: [ubuntu-latest] | ||
python: ['3.6'] | ||
# Add specific combinations to be tested against "node 10" (to restrict cardinality) | ||
include: | ||
# Test using Windows | ||
- os: windows-latest | ||
dotnet: '3.1.x' | ||
java: '8' | ||
node: '10' | ||
python: '3.6' | ||
# Test using macOS | ||
- os: macos-latest | ||
dotnet: '3.1.x' | ||
java: '8' | ||
node: '10' | ||
python: '3.6' | ||
# Test alternate Javas | ||
- java: '11' | ||
dotnet: '3.1.x' | ||
node: '10' | ||
os: ubuntu-latest | ||
python: '3.6' | ||
# Test alternate Pythons | ||
- python: '3.7' | ||
dotnet: '3.1.x' | ||
java: '8' | ||
node: '10' | ||
os: ubuntu-latest | ||
- python: '3.8' | ||
dotnet: '3.1.x' | ||
java: '8' | ||
node: '10' | ||
os: ubuntu-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
# Set up all of our standard runtimes (this is matrix-based) | ||
- name: Set up .NET ${{ matrix.dotnet }} | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ matrix.dotnet }} | ||
- name: Set up Java ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Set up Node ${{ matrix.node }} | ||
uses: actions/setup-node@v2.1.1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: 'Linux: Install python3-venv' | ||
if: runner.os == 'Linux' | ||
run: sudo apt install -y python3-venv | ||
- name: 'Windows: Expose python3 command' | ||
if: runner.os == 'Windows' | ||
shell: bash | ||
run: cp ${pythonLocation}/python.exe ${pythonLocation}/python3.exe | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: built-tree | ||
- name: Locate Caches | ||
id: cache-locations | ||
run: |- | ||
# Need to have PIP >= 20.1 for "pip cache dir" to work | ||
python3 -m pip install --upgrade pip | ||
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" | ||
echo "::set-output name=yarn-cache::$(yarn cache dir)" | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: |- | ||
${{ steps.cache-locations.outputs.pip-cache }} | ||
${{ steps.cache-locations.outputs.yarn-cache }} | ||
~/.m2/repository | ||
~/.nuget/packages | ||
# Not including .NET / Java in the cache keys, those artifacts are SDK-version-independent | ||
key: ${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: |- | ||
${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}- | ||
${{ runner.os }}-node@${{ matrix.node }}- | ||
${{ runner.os }}- | ||
# Install dependencies (ensures arch/os specific packages are re-built) | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
# Run all tests | ||
- name: Test | ||
run: yarn test |
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,62 @@ | ||
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: Run "ncu -u" in root | ||
run: npx -p npm-check-updates ncu -u | ||
|
||
# If "ncu -u" changed something... we must first invoke "yarn install" | ||
- name: Run "yarn install" | ||
run: yarn install | ||
|
||
- name: Run "yarn upgrade" | ||
run: yarn upgrade | ||
|
||
- 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.AUTO_APPROVE_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
{ | ||
"skip": { "tag": true }, | ||
"packageFiles": [ { "filename": "lerna.json", "type": "json" } ], | ||
"bumpFiles": [ { "filename": "lerna.json", "type": "json" } ] | ||
"bumpFiles": [ | ||
{ | ||
"filename": "lerna.json", | ||
"type": "json" | ||
} | ||
], | ||
"packageFiles": [ | ||
{ | ||
"filename": "lerna.json", | ||
"type": "json" | ||
} | ||
], | ||
"skip": { | ||
"tag": true | ||
} | ||
} |
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.