-
Notifications
You must be signed in to change notification settings - Fork 155
fix: version command refactor #1107
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
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4275134
fix: version command refactor
saragerion a574406
fix: captureMethod correctly detect method name when used with extern…
dreamorosi 77025b2
chore(cicd): add lerna commands in github actions - PR checks
saragerion a3763d4
fix(cicd): lint & test commands for examples and layer
saragerion 69d1fcc
fix(cicd): same cached modules for examples and layer PR lint
saragerion 92a3e8d
fix(cicd): add foreground script to ci
saragerion 83f6efb
feat: publish lib as Lambda Layer (#1095)
flochaz ee243de
fix: ts-node version for layer-publisher (#1112)
flochaz 5f1da98
doc(layer): bump layer version to 2 to match the one built for latest…
flochaz 0bb77af
Chore(tracer): unit tests to verify decorators await decorated class …
dreamorosi d4174eb
feat(tracer): specify subsegment name when capturing class method (#1…
dreamorosi 3b5c799
chore(layer): fix bundling and e2e tests by manually setting hash of …
flochaz 6f14fb3
fix(all): update version command to use lint-fix (#1119)
dreamorosi 3a6d791
chore(release): v1.3.0 [skip ci]
github-actions[bot] 9b52de4
docs: update layer version in docs (#1120)
dreamorosi 652b7f0
docs: fix format issues (#1122)
dreamorosi 13ec0c4
fix: version command refactor
saragerion 9f65070
chore(cicd): add lerna commands in github actions - PR checks
saragerion bcab998
fix(cicd): lint & test commands for examples and layer
saragerion 529c9f3
fix(cicd): same cached modules for examples and layer PR lint
saragerion cda0ee8
fix(cicd): add foreground script to ci
saragerion 0c700d8
fix: merge conflicts
dreamorosi b9066a5
Revert "fix: merge conflicts"
dreamorosi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 @@ | ||
name: On PR code update | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
run-linting-check-and-unit-tests: | ||
uses: ./.github/workflows/reusable-run-linting-check-and-unit-tests.yml |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lerna-lint-fix | ||
npm run test | ||
This file contains hidden or 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,5 @@ | ||
{ | ||
"name": "cdk-app", | ||
"name": "cdk-example", | ||
"version": "1.2.1", | ||
"author": { | ||
"name": "Amazon Web Services", | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should change this to
npm test -ws
.Currently, it will run
npm run lerna-test
which will run tests in all packages, examples, and layer-publisher.If instead we changed it to the above we'd be running the unit tests only in
packages/*
and not in the others.This is on line with what we discussed in the last conversation about the topic and is captured in #1106. If you want to keep this separate I can open a PR later on.
Aside from where the tests are run only difference between
npm run test
&npm test -ws
is that npm workspaces still doesn't run in parallel but sequentially. I don't think it's a big deal at this stage, but if you want to run it in parallel you can usenpm t -w packages/commons & npm t -w packages/logger & npm t -w packages/tracer & npm t -w packages/metrics
instead.