Skip to content

Commit 17fd317

Browse files
committed
ci: enable github actions
1 parent 4fc2291 commit 17fd317

File tree

5 files changed

+89
-2
lines changed

5 files changed

+89
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
11+
A clear and concise description of what the bug is, the package version you are using.
12+
13+
**To Reproduce**
14+
15+
Please provide us with a unit test, an example code or even pseudo-code. It could be written in JavaScript or CoffeeScript, but not in TypeScript unless the bug is related to TypeScript.
16+
17+
What's important is to **limit the data** to the minimum as well as to **strip down the number of options** to the relevant ones with an impact. Do not reference an external file.
18+
19+
**Additional context**
20+
21+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Summary**
10+
11+
A clear and concise description of what the feature is.
12+
13+
**Motivation**
14+
15+
If the feature is related to a problem, describe it. Add any other context explaining why this feature is of interest to you and the community.
16+
17+
**Alternative**
18+
19+
A clear and concise description of alternative solutions or features you've considered.
20+
21+
**Draft**
22+
23+
Write a proposal for the feature, how it works, its expected coverage, a sample code or unit test. If the feature is related to a documentation or article, write the content or the table of content you expect.
24+
25+
**Additional context**
26+
27+
Add any other context or screenshots about the feature request here.

.github/workflows/nodejs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [16.x, 18.x]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: yarn --frozen-lockfile
23+
- run: yarn run test
24+
publish:
25+
needs: [test]
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 0
31+
- uses: actions/setup-node@v2
32+
with:
33+
node-version: '16.x'
34+
registry-url: 'https://registry.npmjs.org'
35+
- run: yarn install
36+
- run: yarn run publish
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/node_modules
33
/package-lock.json
44
/yarn.lock
5-
!.husky
6-
!.travis.yml
5+
!/.github
6+
!/.husky
77
!.gitignore
88
!.npmignore

0 commit comments

Comments
 (0)