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

Test against node 15 #1138

Merged
merged 6 commits into from Oct 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/continuous-integration.yml
Expand Up @@ -39,23 +39,30 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, windows]
flavor: [1, 2, 3, 4, 5, 6, 7, 8, 9]
# Don't forget to add all new flavors to this list!
flavor: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
include:
# Node 10
- flavor: 1
node: 10
nodeFlag: 10
typescript: latest
typescriptFlag: latest
# Node 12.15
- flavor: 2
node: 12.15
nodeFlag: 12_15
typescript: latest
typescriptFlag: latest
# Node 12.16
# TODO Add comments about why we test 2.15 and 2.16; I think git blame says it's because of an ESM behavioral change that happened at this version number
# TODO switch to '12' to get latest patch?
- flavor: 3
node: 12.16
nodeFlag: 12_16
typescript: latest
typescriptFlag: latest
# Node 13
- flavor: 4
node: 13
nodeFlag: 13
Expand All @@ -71,6 +78,7 @@ jobs:
nodeFlag: 13
typescript: next
typescriptFlag: next
# Node 14
- flavor: 7
node: 14
nodeFlag: 14
Expand All @@ -86,6 +94,25 @@ jobs:
nodeFlag: 14
typescript: next
typescriptFlag: next
# Node 15
- flavor: 10
node: 15
nodeFlag: 15
typescript: latest
typescriptFlag: latest
downgradeNpm: true
- flavor: 11
node: 15
nodeFlag: 15
typescript: 2.7
typescriptFlag: 2_7
downgradeNpm: true
- flavor: 12
node: 15
nodeFlag: 15
typescript: next
typescriptFlag: next
downgradeNpm: true
steps:
# checkout code
- uses: actions/checkout@v2
Expand All @@ -95,6 +122,9 @@ jobs:
with:
node-version: ${{ matrix.node }}
# lint, build, test
# Downgrade from npm 7 to 6 because 7 still seems buggy to me
- if: ${{ matrix.downgradeNpm }}
run: npm install -g npm@6
- run: npm install
- run: npm run build-nopack
- name: Download package artifact
Expand Down
2 changes: 1 addition & 1 deletion src/index.spec.ts
Expand Up @@ -926,7 +926,7 @@ describe('ts-node', function () {
}, function (err, stdout, stderr) {
expect(err).to.not.equal(null)
// expect error from node's default resolver
expect(stderr).to.match(/Error \[ERR_UNSUPPORTED_ESM_URL_SCHEME\]:.*\n *at defaultResolve/)
expect(stderr).to.match(/Error \[ERR_UNSUPPORTED_ESM_URL_SCHEME\]:.*(?:\n.*){0,1}\n *at defaultResolve/)
return done()
})
})
Expand Down