Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
137 additions
and
1 deletion.
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
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,78 @@ | ||
name: Benchmark | ||
|
||
on: | ||
- push | ||
|
||
env: | ||
BENCHMARK_LAUNCHES: 100 | ||
BENCHMARK_MAX_STDEV: 10 | ||
BENCHMARK_RETRIES: 3 | ||
|
||
jobs: | ||
production: | ||
name: Production on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: [15] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
env: | ||
BENCHMARK_TYPE: product | ||
BENCHMARK_OPTIONS: '{}' | ||
steps: | ||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Compile sources | ||
run: npm run compile | ||
- name: Benchmark (async) | ||
run: npm run bench-async | ||
- name: Benchmark (stream) | ||
run: npm run bench-stream | ||
- name: Benchmark (sync) | ||
run: npm run bench-sync | ||
|
||
regress: | ||
name: Regress on ${{ matrix.os }} with options (${{ matrix.benchmark_options }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: [15] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
benchmark_options: | ||
- '{}' | ||
- '{ "objectMode": true }' | ||
- '{ "absolute": true }' | ||
env: | ||
BENCHMARK_TYPE: regression | ||
BENCHMARK_OPTIONS: ${{ matrix.benchmark_options }} | ||
steps: | ||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Compile sources | ||
run: npm run compile | ||
- name: Benchmark (async) | ||
run: npm run bench-async | ||
- name: Benchmark (stream) | ||
run: npm run bench-stream | ||
- name: Benchmark (sync) | ||
run: npm run bench-sync |
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,19 @@ | ||
name: Cancel Previous Runs | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
cancel: | ||
name: 'Cancel Previous Runs' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- uses: styfle/cancel-workflow-action@0.6.0 | ||
with: | ||
workflow_id: 4198440 | ||
access_token: ${{ github.token }} | ||
- uses: styfle/cancel-workflow-action@0.6.0 | ||
with: | ||
workflow_id: 4197767 | ||
access_token: ${{ github.token }} |
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,39 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: [8, 10, 12, 14, 15] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
steps: | ||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Compile sources | ||
run: npm run compile | ||
- name: Run Hygiene Checks | ||
run: npm run lint | ||
- name: Run unit tests | ||
run: npm run test | ||
- name: Run smoke tests (sync) | ||
run: npm run smoke:sync | ||
- name: Run smoke tests (async) | ||
run: npm run smoke:async | ||
- name: Run smoke tests (stream) | ||
run: npm run smoke:stream |