-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
break nodejs action and update badge (#165)
Issue Resolved: #164 Signed-off-by: Anan Zhuang <[email protected]>
- Loading branch information
Showing
6 changed files
with
198 additions
and
175 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,50 @@ | ||
name: Bundler | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
bundler-support: | ||
name: Bundler support | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
cluster: ["opendistro", "opensearch"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
- name: Runs ${{ matrix.cluster }} cluster | ||
run: | | ||
make cluster.clean cluster.${{ matrix.cluster }}.build cluster.${{ matrix.cluster }}.start | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install | ||
run: | | ||
npm install | ||
npm install --prefix test/bundlers/parcel-test | ||
npm install --prefix test/bundlers/rollup-test | ||
npm install --prefix test/bundlers/webpack-test | ||
- name: Build | ||
run: | | ||
npm run build --prefix test/bundlers/parcel-test | ||
npm run build --prefix test/bundlers/rollup-test | ||
npm run build --prefix test/bundlers/webpack-test | ||
- name: Run bundle | ||
run: | | ||
npm start --prefix test/bundlers/parcel-test | ||
npm start --prefix test/bundlers/rollup-test | ||
npm start --prefix test/bundlers/webpack-test |
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,36 @@ | ||
name: Coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
code-coverage: | ||
name: Code coverage | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install | ||
run: | | ||
npm install | ||
- name: Code coverage report | ||
run: | | ||
npm run test:coverage-report | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: ./coverage.lcov | ||
fail_ci_if_error: true | ||
|
||
- name: Code coverage 90% | ||
run: | | ||
npm run test:coverage-90 |
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,77 @@ | ||
name: Integration | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
helpers-integration-test: | ||
name: Helpers integration test | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
cluster: ["opendistro", "opensearch"] | ||
node-version: [12.x, 14.x, 16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
- name: Runs ${{ matrix.cluster }} cluster | ||
run: | | ||
make cluster.clean cluster.${{ matrix.cluster }}.build cluster.${{ matrix.cluster }}.start | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install | ||
run: | | ||
npm install | ||
- name: Integration test | ||
run: | | ||
npm run test:integration:helpers | ||
helpers-secure-integration-test: | ||
name: Helpers integration test with secure cluster | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
cluster: ["opendistro", "opensearch"] | ||
node-version: [12.x, 14.x, 16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
- name: Runs ${{ matrix.cluster }} secure cluster | ||
run: | | ||
export SECURE_INTEGRATION=true | ||
make cluster.clean cluster.${{ matrix.cluster }}.build cluster.${{ matrix.cluster }}.start | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install | ||
run: | | ||
npm install | ||
- name: Integration test with secure cluster | ||
run: | | ||
npm run test:integration:helpers-secure |
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,28 @@ | ||
name: License | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
license: | ||
name: License check | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install | ||
run: | | ||
npm install | ||
- name: License checker | ||
run: | | ||
npm run license-checker |
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