Skip to content

Commit

Permalink
chore(release): 1.58.0 (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller authored May 6, 2022
2 parents f614666 + fb6ff81 commit f8ba112
Show file tree
Hide file tree
Showing 90 changed files with 1,921 additions and 816 deletions.
18 changes: 18 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,24 @@
"contributions": [
"doc"
]
},
{
"login": "nathannaveen",
"name": "nathannaveen",
"avatar_url": "https://avatars.githubusercontent.com/u/42319948?v=4",
"profile": "https://github.com/nathannaveen",
"contributions": [
"maintenance"
]
},
{
"login": "jusdino",
"name": "Justin Frahm",
"avatar_url": "https://avatars.githubusercontent.com/u/11840575?v=4",
"profile": "https://github.com/jusdino",
"contributions": [
"bug"
]
}
],
"repoType": "github",
Expand Down
16 changes: 7 additions & 9 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
{
"name": "Dev Container Definition - AWS JSII",
"name": "Dev Container - aws/jsii",
"build": {
"dockerfile": "superchain/Dockerfile",
"context": ".",
"target": "superchain",
"args": {
"BUILDPLATFORM": "linux/amd64",
"TARGETPLATFORM": "linux/amd64",
"BUILD_TIMESTAMP": "unknown",
"COMMIT_ID": "HEAD",
"REGISTRY": "docker.io/library",
"COMMIT_ID": "head"
}
},
},
"containerUser": "root",
"remoteUser": "root",
"containerUser": "superchain",
"remoteUser": "superchain",
"postCreateCommand": "yarn install && yarn build",
"extensions": [
"[email protected]"
]
"[email protected]",
],
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
# Github Linguist configuration (https://github.com/github/linguist)
yarn.lock linguist-generated
*.snap linguist-generated
packages/@jsii/benchmarks/fixtures/** linguist-vendored
docs/** linguist-documentation
16 changes: 0 additions & 16 deletions .github/semantic.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12', '14', '16']
node: ['12', '14', '16', '18']
env:
# Node version whose images will be aliased without the -nodeXX segment
DEFAULT_NODE_MAJOR_VERSION: 12
DEFAULT_NODE_MAJOR_VERSION: 14
steps:
- name: Check out
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
git config user.email "[email protected]"
- name: Prepare Commit
run: |-
rsync --delete --exclude=.git --recursive ${{ runner.temp }}/site/ ./
rsync --delete --exclude=.git --exclude=dev --recursive ${{ runner.temp }}/site/ ./
touch .nojekyll
git add .
git diff --cached --exit-code >/dev/null || (
Expand Down
91 changes: 73 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
with:
cache: yarn
node-version: '12'
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: '3.6'
python-version: '3.7'
- name: Install python3-venv
run: sudo apt install -y python3-venv
- name: Locate Caches
Expand All @@ -69,9 +69,9 @@ jobs:
!~/.m2/repository/software/amazon/jsii/
~/.nuget/packages
!~/.nuget/packages/amazon.jsii.*
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
key: ${{ runner.os }}-node@12-python@3.7-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
restore-keys: |-
${{ runner.os }}-node@12-python@3.6-
${{ runner.os }}-node@12-python@3.7-
${{ runner.os }}-node@12-
${{ runner.os }}-
# Prepare dependencies and build
Expand Down Expand Up @@ -139,10 +139,10 @@ jobs:
with:
cache: yarn
node-version: '12'
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: '3.6'
python-version: '3.7'
- name: Install python3-venv
run: sudo apt install -y python3-venv
- name: Locate Caches
Expand All @@ -163,9 +163,9 @@ jobs:
!~/.m2/repository/software/amazon/jsii/
~/.nuget/packages
!~/.nuget/packages/amazon.jsii.*
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
key: ${{ runner.os }}-node@12-python@3.7-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
restore-keys: |-
${{ runner.os }}-node@12-python@3.6-
${{ runner.os }}-node@12-python@3.7-
${{ runner.os }}-node@12-
${{ runner.os }}-
# Prepare dependencies and build
Expand Down Expand Up @@ -204,6 +204,8 @@ jobs:
path: ${{ github.workspace }}/dist/

test:
permissions:
contents: none
name: Test (${{ matrix.os }} / dotnet ${{ matrix.dotnet }} / java ${{ matrix.java }} / node ${{ matrix.node }} / python ${{ matrix.python }})
needs: build
strategy:
Expand All @@ -213,9 +215,14 @@ jobs:
dotnet: ['3.1.x']
go: ['1.16']
java: ['8']
node: ['12', '14', '16', '17']
node:
- '12' # EOL 2022-04-30
- '14' # EOL 2023-04-30
- '16' # EOL 2024-04-30
- '17' # EOL 2022-06-01
- '18' # EOL 2025-04-30
os: [ubuntu-latest]
python: ['3.6']
python: ['3.7']
# Add specific combinations to be tested against "node 12" (to restrict cardinality)
include:
# Test using Windows
Expand All @@ -224,48 +231,48 @@ jobs:
go: '1.16'
java: '8'
node: '12'
python: '3.6'
python: '3.7'
# Test using macOS
- os: macos-latest
dotnet: '3.1.x'
go: '1.16'
java: '8'
node: '12'
python: '3.6'
python: '3.7'
# Test alternate .NETs
- java: '8'
dotnet: '5.0.x'
go: '1.16'
node: '12'
os: ubuntu-latest
python: '3.6'
python: '3.7'
- java: '8'
dotnet: '6.0.x'
go: '1.16'
node: '12'
os: ubuntu-latest
python: '3.6'
python: '3.7'
# Test alternate Javas
- java: '11'
dotnet: '3.1.x'
go: '1.16'
node: '12'
os: ubuntu-latest
python: '3.6'
python: '3.7'
# Test alternate Pythons
- python: '3.7'
- python: '3.8'
dotnet: '3.1.x'
go: '1.16'
java: '8'
node: '12'
os: ubuntu-latest
- python: '3.8'
- python: '3.9'
dotnet: '3.1.x'
go: '1.16'
java: '8'
node: '12'
os: ubuntu-latest
- python: '3.9'
- python: '3.10'
dotnet: '3.1.x'
go: '1.16'
java: '8'
Expand Down Expand Up @@ -358,3 +365,51 @@ jobs:
&& echo "Untracked files: ${untracked:-<none>}" \
&& test -z "${untracked}"
shell: bash
benchmark:
name: Run benchmark suite
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
steps:
# Check out the code
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: built-tree
- name: Extract Artifact
run: |-
echo "::group::Untar Archive"
tar zxvf built-tree.tgz
echo "::endgroup"
rm built-tree.tgz
- name: Set up Node
uses: actions/setup-node@v3
with:
cache: yarn
node-version: '14'
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Benchmark
working-directory: packages/@jsii/benchmarks
run: yarn bench --output ${{ runner.temp }}/bench-output.json
- name: Compare Benchmark Results
if: github.event_name == 'pull_request'
uses: benchmark-action/github-action-benchmark@v1
with:
name: jsii Benchmark Regression
tool: 'customSmallerIsBetter'
output-file-path: ${{ runner.temp }}/bench-output.json
comment-always: true
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
fail-on-alert: true
- name: Upload Benchmark Results
if: github.event_name == 'push'
uses: benchmark-action/github-action-benchmark@v1
with:
name: jsii Benchmark
tool: 'customSmallerIsBetter'
output-file-path: ${{ runner.temp }}/bench-output.json
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
auto-push: true
34 changes: 34 additions & 0 deletions .github/workflows/pull-request-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: pull-request-lint
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
- edited
jobs:
validate:
name: Validate PR Title
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |-
feat
fix
chore
docs
style
refactor
perf
test
build
ci
revert
requireScope: false
Loading

0 comments on commit f8ba112

Please sign in to comment.