Add Node.js version matrix to test across multiple versions (14, 16, 18) #30
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.
This commit updates the .travis.yml file testing against multiple versions of Node.js, specifically versions 14, 16 and 18. This ensures compatibility across different versions of Node.js and helps catch potential issues that may arise due to version differences, especially as new versions are released.
Node.js Version Matrix:
The build now runs on Node.js versions 14, 16 and 18, which are commonly used in production environments and will help identify issues related to different Node.js versions.
Improved Compatibility:
Testing against multiple versions allows us to ensure that the code is compatible with both Active LTS versions (16) and the Current version (18), along with the previous LTS version (14). By adding this matrix, we ensure that the code works across a wider range of environments, helping to future-proof our codebase and improve its stability.
Explanation of Changes:
The node_js section now includes three versions: 14, 16 and 18.
This matrix will automatically trigger separate jobs in Travis CI for each version of Node.js.
We retain the allow_failures for the lint task in the matrix, ensuring that linting failures don’t cause the build to fail.