-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
8 changed files
with
232 additions
and
38 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,41 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: regevbr | ||
|
||
--- | ||
|
||
Your issue may already be reported! | ||
Please search on the [issue tracker](../) before creating one. | ||
|
||
## Expected Behavior | ||
<!--- If you're describing a bug, tell us what should happen --> | ||
<!--- If you're suggesting a change/improvement, tell us how it should work --> | ||
|
||
## Current Behavior | ||
<!--- If describing a bug, tell us what happens instead of the expected behavior --> | ||
<!--- If suggesting a change/improvement, explain the difference from current behavior --> | ||
|
||
## Possible Solution | ||
<!--- Not obligatory, but suggest a fix/reason for the bug, --> | ||
<!--- or ideas how to implement the addition or change --> | ||
|
||
## Steps to Reproduce (for bugs) | ||
<!--- Provide a link to a live example, or an unambiguous set of steps to --> | ||
<!--- reproduce this bug. Include code to reproduce, if relevant --> | ||
1. | ||
2. | ||
3. | ||
4. | ||
|
||
## Context | ||
<!--- How has this issue affected you? What are you trying to accomplish? --> | ||
<!--- Providing context helps us come up with a solution that is most useful in the real world --> | ||
|
||
## Your Environment | ||
<!--- Include as many relevant details about the environment you experienced the bug in --> | ||
* Version used: | ||
* Node version: | ||
|
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: regevbr | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,29 @@ | ||
A similar PR may already be submitted! | ||
Please search among the [Pull request](../) before creating one. | ||
|
||
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request: | ||
|
||
For more information, see the `CONTRIBUTING` guide. | ||
|
||
|
||
**Summary** | ||
|
||
<!-- Summary of the PR --> | ||
|
||
This PR fixes/implements the following **bugs/features** | ||
|
||
* [ ] Bug 1 | ||
* [ ] Bug 2 | ||
* [ ] Feature 1 | ||
* [ ] Feature 2 | ||
* [ ] Breaking changes | ||
|
||
<!-- You can skip this if you're fixing a typo or alike --> | ||
|
||
Explain the **motivation** for making this change. What existing problem does the pull request solve? | ||
|
||
<!-- Example: When "Adding a function to do X", explain why it is necessary to have a way to do X. --> | ||
|
||
**Test plan (required)** | ||
|
||
<!-- Make sure tests pass on both Travis and locally. --> |
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,130 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [ published ] | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
env: | ||
PRIMARY_NODE_VERSION: 16.x | ||
PRIMARY_OS: ubuntu-latest | ||
REGISTRY: https://registry.npmjs.org/ | ||
|
||
jobs: | ||
test: | ||
name: CI | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
node-version: [ 6.x, 8.x, 10.x, 12.x, 14.x, 16.x ] | ||
|
||
steps: | ||
|
||
- name: Echo env variables | ||
run: | | ||
echo ref: ${{ github.event.client_payload.ref || github.ref }} | ||
echo sha: ${{ github.event.client_payload.sha || github.sha }} | ||
echo head ref: ${{ github.event.client_payload.head_ref || github.head_ref }} | ||
echo base ref: ${{ github.event.client_payload.base_ref || github.base_ref }} | ||
echo action: ${{ github.action }} | ||
echo event: ${{ github.event_name }} | ||
- uses: actions/checkout@v2 | ||
name: Checkout | ||
with: | ||
ref: ${{ github.event.client_payload.ref || github.ref }} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache-dir | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
with: | ||
path: ${{ steps.npm-cache-dir.outputs.dir }} | ||
key: ${{ matrix.os }}-${{ matrix.node-version }}-node | ||
restore-keys: | | ||
${{ matrix.os }}-${{ matrix.node-version }}-node | ||
- name: Install dependencies and build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Snyk security check | ||
if: matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS | ||
uses: snyk/actions/node@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
- name: Run unit tests with coverage | ||
if: matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: npm run cover | ||
|
||
- name: Run unit tests | ||
if: "!(matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS)" | ||
run: npm run mocha | ||
|
||
publish_version: | ||
name: Publish | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
node-version: [ 6.x ] | ||
needs: [ test ] | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: fetch | ||
run: | | ||
git fetch --prune --unshallow | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: ${{ env.REGISTRY }} | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache-dir | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
- uses: actions/cache@v2 | ||
id: npm-cache | ||
with: | ||
path: ${{ steps.npm-cache-dir.outputs.dir }} | ||
key: ${{ matrix.os }}-${{ matrix.node-version }}-node | ||
restore-keys: | | ||
${{ matrix.os }}-${{ matrix.node-version }}-node | ||
- name: Install dependencies and build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Publish | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_AUTH_TOKEN }} | ||
registry: ${{ env.REGISTRY }} |
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