Skip to content

Commit

Permalink
feat: support GitHub Action (#96)
Browse files Browse the repository at this point in the history
* feat: support GitHub Action

* chore: self mutation

Signed-off-by: github-actions <github-actions@github.com>

---------

Signed-off-by: github-actions <github-actions@github.com>
Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
gyalai-aws and github-actions authored Oct 3, 2024
1 parent 6a9fd6d commit df6841b
Show file tree
Hide file tree
Showing 21 changed files with 3,862 additions and 16,356 deletions.
9 changes: 9 additions & 0 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,16 @@ const pipeline = new yarn.TypeScriptWorkspace({

devDeps: [
'eslint@^8',
`@aws-cdk/integ-runner@${cdkVersion}-alpha.0`,
`@aws-cdk/integ-tests-alpha@${cdkVersion}-alpha.0`,
'@typescript-eslint/eslint-plugin@^7',
'@typescript-eslint/parser@^7',
'@typescript-eslint/typescript-estree@^7',
],

peerDeps: [`cdk-nag@^${cdkNagVersion}`, `aws-cdk-lib@^${cdkVersion}`, `constructs@^${constructsVersion}`],
bundledDeps: ['@cloudcomponents/cdk-pull-request-approval-rule', '@cloudcomponents/cdk-pull-request-check', 'yaml'],
deps: [`cdk-pipelines-github`],
jest: true,
disableTsconfig: true,
});
Expand Down Expand Up @@ -165,6 +168,23 @@ pipeline.tasks
.tryFind('post-compile')!
.exec('copyfiles -u 1 -E src/**/*.py src/**/Pipfile src/**/Pipfile.lock src/projen/Taskfile.yaml lib');

pipeline.addTask('integ', {
description: 'Run integration snapshot tests',
exec: 'yarn integ-runner --language typescript',
receiveArgs: true,
});

pipeline.addTask('integ:update', {
description: 'Run and update integration snapshot tests',
exec: 'yarn integ-runner --language typescript --update-on-failed',
receiveArgs: true,
});

root.addTask('integ', {
exec: 'yarn workspace @cdklabs/cdk-cicd-wrapper run integ',
receiveArgs: true,
});

// Copy bundle dependencies to the package
const postCompile = pipeline.tasks.tryFind('post-compile')!;
postCompile.exec("export DEP='@cloudcomponents';cp -rf ../../../node_modules/$DEP ./node_modules/ 2>/dev/null;");
Expand Down
3,853 changes: 2,659 additions & 1,194 deletions NOTICE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions OSS_License_Summary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"(MIT OR CC0-1.0)","5"
"(MIT OR GPL-3.0-or-later)","1"
"0BSD","2"
"Apache-2.0","142"
"Apache-2.0","149"
"BSD*","1"
"BSD-2-Clause","17"
"BSD-3-Clause","21"
"CC-BY-3.0","1"
"CC-BY-4.0","1"
"CC0-1.0","2"
"ISC","77"
"MIT","649"
"MIT","650"
"Python-2.0","1"
"UNLICENSED","1"
Loading

0 comments on commit df6841b

Please sign in to comment.