Skip to content

Commit c1398e1

Browse files
authored
PR Build Workflow - Ensure tests run on all specified Node versions (#14)
*Issue #, if available:* Not seeing tests run in the GH workflow: https://github.com/aws-observability/aws-otel-js-instrumentation/actions/runs/10322310931/job/28577248584 *Description of changes:* Update workflow to run unit tests for all Node versions *Testing:* https://github.com/aws-observability/aws-otel-js-instrumentation/actions/runs/10322590525/job/28578137898?pr=14 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 2d59af7 commit c1398e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
1717
matrix:
1818
node: ["14", "16", "18", "20", "22"]
19+
include:
20+
- node: 18
21+
code-coverage: true
1922
env:
2023
NPM_CONFIG_UNSAFE_PERM: true
2124
steps:
@@ -36,7 +39,6 @@ jobs:
3639
- name: Compile all NPM projects
3740
run: npm run compile
3841
- name: Unit tests (Full)
39-
if: matrix.code-coverage
4042
run: npm run test
4143
- name: Report Coverage
4244
if: ${{ matrix.code-coverage && !cancelled()}}

0 commit comments

Comments
 (0)