-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rmuller/fix-java-cleanup
- Loading branch information
Showing
93 changed files
with
5,259 additions
and
2,171 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,13 @@ | ||
# Approve PRs with "pr/auto-approve". mergify takes care of the actual merge. | ||
|
||
name: auto-approve | ||
on: pull_request | ||
|
||
jobs: | ||
auto-approve: | ||
if: contains(github.event.pull_request.labels.*.name, 'pr/auto-approve') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hmarr/[email protected] | ||
with: | ||
github-token: "${{ secrets.AUTO_APPROVE_GITHUB_TOKEN }}" |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
with: | ||
java-version: '8' | ||
- name: Set up Node 12 | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
with: | ||
node-version: '12' | ||
- name: Set up Python 3.6 | ||
|
@@ -118,7 +118,7 @@ jobs: | |
with: | ||
java-version: '8' | ||
- name: Set up Node 12 | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
with: | ||
node-version: '12' | ||
- name: Set up Python 3.6 | ||
|
@@ -257,7 +257,7 @@ jobs: | |
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Set up Node ${{ matrix.node }} | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Set up Python ${{ matrix.python }} | ||
|
@@ -341,7 +341,7 @@ jobs: | |
with: | ||
java-version: '8' | ||
- name: Set up Node 10 | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
with: | ||
node-version: '10' | ||
- name: Set up Python 3.6 | ||
|
@@ -415,7 +415,7 @@ jobs: | |
- name: Integration Test (build) | ||
run: |- | ||
npx lerna run build --concurrency=2 --stream 2>&1 > ${{ runner.temp }}/build.log | ||
npx lerna run build --concurrency=1 --stream 2>&1 > ${{ runner.temp }}/build.log | ||
working-directory: aws-cdk | ||
env: | ||
# Make lots of memory available, aws-cdk-lib is __large__ | ||
|
@@ -456,36 +456,3 @@ jobs: | |
path: |- | ||
${{ github.workspace }}/aws-cdk/dist/ | ||
${{ github.workspace }}/aws-cdk/**/dist/ | ||
push-go-runtime: | ||
needs: build | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Node 12 | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '12' | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: built-tree | ||
path: ${{ github.workspace }}/jsii-built-tree | ||
- name: Extract Artifact | ||
working-directory: ${{ github.workspace }}/jsii-built-tree | ||
run: |- | ||
tar zxvf built-tree.tgz | ||
rm built-tree.tgz | ||
- name: Release | ||
working-directory: ${{ github.workspace }}/jsii-built-tree | ||
if: github.ref == 'refs/head/release' | ||
run: |- | ||
VERSION=$(node -p 'require("./lerna.json").version') | ||
cd ./packages/@jsii/go-runtime/jsii-runtime-go | ||
echo ${VERSION} > version | ||
npx -p jsii-release@latest jsii-release-golang . | ||
env: | ||
GIT_USER_NAME: AWS CDK Team | ||
GIT_USER_EMAIL: [email protected] | ||
GITHUB_TOKEN: ${{ secrets.GO_PUBLISHING_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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node | ||
uses: actions/[email protected].4 | ||
uses: actions/[email protected].5 | ||
with: | ||
node-version: 10 | ||
|
||
|
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
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
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,6 @@ | ||
/jsii-calc/ | ||
*.generated.go | ||
*.generated_test.go | ||
|
||
*.js | ||
*.d.ts |
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,43 @@ | ||
#!/usr/bin/env node | ||
|
||
import { readdirSync, statSync } from 'fs'; | ||
import { join } from 'path'; | ||
import { cwd } from 'process'; | ||
|
||
import { runCommand } from './_constants'; | ||
|
||
/** | ||
* Recursively searches the provided directory for `go.mod` files (excluding | ||
* sub-directories named `node_modules` and `jsii-calc`), and executes the | ||
* supplied go command in the parent directory of eacu such file. | ||
* | ||
* @example | ||
* # Running "go fmt" on all modules: | ||
* $ all-go.js fmt ./... | ||
* | ||
* # Running "go test" in all modules: | ||
* $ all-go.js test ./... | ||
*/ | ||
function visit(dir: string): void { | ||
for (const file of readdirSync(dir)) { | ||
const path = join(dir, file); | ||
if (statSync(path).isDirectory()) { | ||
if (file !== 'node_modules' && file !== 'jsii-calc') { | ||
visit(path); | ||
} | ||
continue; | ||
} | ||
if (file === 'go.mod') { | ||
const args = process.argv.slice(2); | ||
console.error(`$ go ${args.join(' ')} # ${path}`); | ||
try { | ||
runCommand('go', args, { cwd: dir, stdio: 'inherit' }); | ||
} catch (e) { | ||
console.error(e.message); | ||
process.exit(-1); | ||
} | ||
} | ||
} | ||
} | ||
|
||
visit(cwd()); |
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.