Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codecov): Code Coverage #6

Closed
wants to merge 12 commits into from
5 changes: 5 additions & 0 deletions .github/workflows/build.yml

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

1 change: 1 addition & 0 deletions .github/workflows/pull-request-lint.yml

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

5 changes: 5 additions & 0 deletions .github/workflows/release.yml

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

36 changes: 36 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { awscdk } from 'projen';
//import { Job } from 'projen/lib/github/workflows-model';
//import { GithubCredentials } from 'projen/lib/github';

const gitHubUser = 'aws-samples';
const projectName = 'emerging-tech-cdk-constructs';
Expand Down Expand Up @@ -30,15 +32,49 @@ const project = new awscdk.AwsCdkConstructLibrary({
npmRegistryUrl: 'https://npm.pkg.github.com',
npmTokenSecret: 'GITHUB_TOKEN',

// projenCredentials: GithubCredentials.fromPersonalAccessToken(
// {
// secret: "PROJEN_GITHUB_TOKEN",
// }
// ),
githubOptions: {
// projenCredentials: GithubCredentials.fromPersonalAccessToken({
// secret: "PROJEN_GITHUB_TOKEN_ALT",
// }),
pullRequestLintOptions: {
contributorStatement: 'By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.',
contributorStatementOptions: {
exemptUsers: [
'[email protected]',
'emerging-tech-cdk-constructs-bot',
],
},
},
},
docgen: false,
licensed: true,
license: 'Apache-2.0',
gitignore: ['*.DS_STORE'],
stability: 'experimental',
codeCov: true,
codeCovTokenSecret: 'CODECOV_TOKEN',
});



// project.github?.workflows.forEach(function(workflow) {
// console.log("workflows: " + workflow.name);
// if (workflow.name == "build") {
// const job = workflow.getJob("self-mutation");
// if (job === undefined) {
// console.warn("how to access this job???");
// }
// (job as Job).steps.forEach(function(step) {
// if (step.name === "Checkout") {
// console.log(step);
// }
// });
// }
// });

project.synth();
Loading