-
Notifications
You must be signed in to change notification settings - Fork 675
ci: simplify test scripts and separate coverage from test runs #2566
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
768f391
ci: simplify test scripts and separate coverage from test runs
WilliamBergamin 7c42d88
Create simple-tests-shine.md
WilliamBergamin 01c5512
why did you want to use glob from the begining
WilliamBergamin 8ad082c
test out a fix
WilliamBergamin f2ed2a0
clean things up
WilliamBergamin ef719c3
make things work on windows
WilliamBergamin 279cda0
make it pass
WilliamBergamin af3165f
style: remove blank line from package json file
zimeg a8bd86a
Apply suggestion from @zimeg
WilliamBergamin b226277
Merge branch 'main' into simplify-ci-testing
WilliamBergamin 4e1144b
Update AGENTS.md
WilliamBergamin bb293e2
Merge branch 'simplify-ci-testing' of https://github.com/slackapi/nod…
WilliamBergamin a8fa914
Merge branch 'main' into simplify-ci-testing
WilliamBergamin 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,4 @@ | ||
| --- | ||
| --- | ||
|
|
||
| ci: simplify test scripts and separate coverage from test runs |
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 |
|---|---|---|
|
|
@@ -6,6 +6,9 @@ on: | |
| - main | ||
| pull_request: | ||
|
|
||
| env: | ||
| LATEST_SUPPORTED_NODE: "24.x" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧠 praise: Super nice to surface this clear! |
||
|
|
||
| jobs: | ||
| test: | ||
| timeout-minutes: 6 | ||
|
|
@@ -63,16 +66,16 @@ jobs: | |
| - name: Lint | ||
| run: npm run lint | ||
| - name: Build docs | ||
|
WilliamBergamin marked this conversation as resolved.
|
||
| if: matrix.node-version == env.LATEST_SUPPORTED_NODE | ||
| run: npm run docs | ||
| - name: Run tests (Node 18/20) | ||
| if: matrix.node-version != '22.x' && matrix.node-version != '24.x' | ||
| # Node 18 lacks --test-reporter; Node 20 has coverage bugs. Use simpler script. | ||
| run: npm run test:node18 --workspaces --if-present | ||
| - name: Run tests (Node 22+) | ||
| if: matrix.node-version == '22.x' || matrix.node-version == '24.x' | ||
| - name: Run tests | ||
| if: matrix.node-version != env.LATEST_SUPPORTED_NODE | ||
| run: npm test | ||
| - name: Run test coverage | ||
| if: matrix.node-version == env.LATEST_SUPPORTED_NODE | ||
| run: npm run test:coverage | ||
| - name: Upload code coverage | ||
| if: matrix.node-version == '24.x' && matrix.os == 'ubuntu-latest' | ||
| if: matrix.node-version == env.LATEST_SUPPORTED_NODE && matrix.os == 'ubuntu-latest' | ||
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | ||
| with: | ||
| fail_ci_if_error: true | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
| "lint": "npx @biomejs/biome check packages", | ||
| "lint:fix": "npx @biomejs/biome check --write packages", | ||
| "test": "npm test --workspaces --if-present", | ||
| "test:coverage": "npm run test:coverage --workspaces --if-present", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🏆 praise: These patterns are joined well here! |
||
| "version": "npm run changeset version && npm install && npm run docs" | ||
| }, | ||
| "devDependencies": { | ||
|
|
||
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.
🔭 note: I'm so curious for what happens to this file in upcoming releases!
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.
Same! originally I thought of adding a patch to each package but that would be inaccurate because this does not actually have any effect on what the user consumes