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
Ensure @babel/runtime-corejs3/core-js/*.js
can be imported on Node.js 17+
#15060
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
746983c
Add Node 19 test and build Babel on latest node
JLHwung 197a58c
bump webpack 5 to latest version
JLHwung 04db2eb
test262 does not require yarn cache
JLHwung b0a092b
use sha256 for webpack 3/4 config
JLHwung 8bee8db
fix: add * exports support for runtime-corejs
JLHwung 5bc1807
avoid invoking yarn for runtime integration tests
JLHwung 0a71def
polish test title
JLHwung File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -19,7 +19,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: 'Check or update Yarn cache (fix w/ "yarn install")' | ||
env: | ||
|
@@ -38,7 +39,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: 'Check for unmet constraints (fix w/ "yarn constraints --fix")' | ||
run: | | ||
|
@@ -60,7 +62,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Generate coverage report | ||
run: | | ||
|
@@ -79,7 +82,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Use ESM and build | ||
run: make use-esm | ||
|
@@ -106,7 +110,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Build babel artifacts | ||
run: | | ||
|
@@ -142,7 +147,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Build babel artifacts | ||
shell: bash | ||
|
@@ -165,7 +171,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn install | ||
|
@@ -182,14 +189,15 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [16, 14, 12, 10, 8, 6] | ||
node-version: [18, 16, 14, 12, 10, 8, 6] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js latest # Run yarn on latest node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" # Build Babel on latest node LTS versions | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Install | ||
run: | | ||
|
@@ -232,7 +240,7 @@ jobs: | |
if: matrix.node-version == '6' || matrix.node-version == '8' || matrix.node-version == '10' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
|
||
build-babel8: | ||
name: Build Babel 8 Artifacts for tests | ||
|
@@ -315,7 +323,8 @@ jobs: | |
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn install | ||
|
@@ -341,7 +350,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn install | ||
|
@@ -367,7 +377,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
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. The runtime integration test has been failing since Node.js 17+. However we didn't catch the error because previously |
||
cache: "yarn" | ||
# See https://github.com/babel/babel/pull/12906 | ||
- name: Support self-references on old Node.js | ||
|
@@ -473,7 +484,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn install | ||
|
@@ -493,6 +505,10 @@ jobs: | |
uses: actions/checkout@v3 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Checkout test runner | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -527,7 +543,8 @@ jobs: | |
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
node-version: latest | ||
check-latest: true | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn install | ||
|
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.
This ensures that
setup-node
will always fetch the latest node version instead of using a locally cached node version. https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#check-latest-version