-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upstream/v2: (26 commits) Replace typeof before DCE (#7788) Bump lmdb (#7797) Upgrade flow to 0.173.0 (#7809) Prevent `term-size` from being bundled (#7750) Pin lmdb@2.2.3 (#7763) Fix Windows CI (#7774) Upgrade Flow to 0.171.0 (#7667) Move tests to GitHub actions (#7678) v2.3.2 Fix autoinstalling node builtins (#7735) Fix lint Use pinned versions Don't build native packages again during publish step Fix build Fix autoinstall v2.3.1 Add diagnostic for failed autoinstall of node polyfill (#7682) v2.3.0 Changelog for 2.3.0 Support React 18 prereleases and experimental versions with automatic JSX runtime (#7642) ...
- Loading branch information
Showing
125 changed files
with
954 additions
and
2,952 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 |
---|---|---|
|
@@ -36,4 +36,4 @@ untyped-import | |
untyped-type-import | ||
|
||
[version] | ||
0.164.0 | ||
0.173.0 |
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,102 @@ | ||
on: pull_request | ||
|
||
name: Continuous Integration | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
cache: yarn | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: Swatinem/rust-cache@v1 | ||
# use `--frozen-lockfile` to fail immediately if the committed yarn.lock needs updates | ||
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile | ||
- run: yarn --frozen-lockfile | ||
- run: yarn lint | ||
|
||
flow: | ||
name: Flow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
cache: yarn | ||
- run: yarn --frozen-lockfile | ||
- run: yarn flow check | ||
|
||
benchmarks: | ||
name: Benchmarks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Benchmarks | ||
uses: parcel-bundler/parcel-benchmark-action@master | ||
env: | ||
PARCEL_BENCHMARK_APIKEY: ${{ secrets.PARCEL_BENCHMARK_APIKEY }} | ||
|
||
unit_tests: | ||
name: Unit tests (${{matrix.os}}, Node ${{matrix.node}}) | ||
strategy: | ||
matrix: | ||
node: [12, 14] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
cache: yarn | ||
node-version: ${{matrix.node}} | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Bump max inotify watches (Linux only) | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p; | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
- run: yarn --frozen-lockfile | ||
- run: yarn build-native-release | ||
- run: yarn test:unit | ||
|
||
integration_tests: | ||
name: Integration tests (${{matrix.os}}, Node ${{matrix.node}}) | ||
strategy: | ||
matrix: | ||
node: [12, 14] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
cache: yarn | ||
node-version: ${{matrix.node}} | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Bump max inotify watches (Linux only) | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p; | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
- run: yarn --frozen-lockfile | ||
- run: yarn build-native-release | ||
- run: yarn test:integration-ci | ||
# Similar to | ||
# https://github.com/marketplace/actions/publish-unit-test-results#use-with-matrix-strategy | ||
- name: Upload JUnit results | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Integration tests (${{matrix.os}}, node ${{matrix.node}}) | ||
path: '**/junit-*.xml' | ||
|
||
test_report: | ||
name: Test report | ||
runs-on: ubuntu-latest | ||
needs: [unit_tests, integration_tests] | ||
if: always() | ||
steps: | ||
- name: Create test report | ||
uses: mikepenz/action-junit-report@v2 | ||
with: | ||
report_paths: artifacts/**/*.xml |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.