Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move legacy node version tests to GitHub actions (#11952)
* chore: run node 6 and 8 test on GitHub actions * fix: apply dynamicImportUrlToPath polyfill on publish * Apply hacks unconditionally * try fix highlight issues * address review comments * chore: add test-legacy build env * Update .travis.yml [skip ci] Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
- Loading branch information
1 parent
66c6b3b
commit 028a051
Showing
4 changed files
with
49 additions
and
27 deletions.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Node CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v2-beta | ||
- name: Generate coverage report | ||
run: | | ||
make -j test-ci-coverage | ||
- name: Upload coverage report | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
legacy-node-version-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [6.x, 8.x] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v2-beta # Build Babel on latest node versions | ||
- name: Build | ||
run: | | ||
BABEL_ENV=test-legacy make -j bootstrap | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Test on node.js ${{ matrix.node-version }} | ||
# Hack: --color has supports-color@5 returned true for GitHub CI | ||
# Remove once `chalk` is bumped to 4.0. | ||
run: | | ||
BABEL_ENV=test node ./node_modules/.bin/jest --ci --color |
This file was deleted.
Oops, something went wrong.
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
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