Skip to content

Commit 3f463bf

Browse files
committed
ci: migrate to Github workflows
1 parent a250044 commit 3f463bf

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- Before creating an issue please make sure you are using the latest version of this package. -->
2+
3+
**Do you want to request a *feature* or report a *bug*?**
4+
<!-- Please ask questions on StackOverflow. Questions will most likely be closed. -->
5+
6+
- [ ] I found a bug
7+
- [ ] I want to propose a feature
8+
9+
**What is the current behavior?**
10+
11+
**If the current behavior is a bug, please provide the steps to reproduce.**
12+
<!-- You can use https://codesandbox.io/ to illustrate the issue you're experiencing or you can provide relevant code samples. -->
13+
14+
1.
15+
2.
16+
3.
17+
18+
**What is the expected behavior?**
19+
20+
**If this is a feature request, what is motivation or use case for changing the behavior?**
21+
22+
**Other info**
23+
<!-- Please mention other relevant information such as the browser version, operating system, version, etc. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. -->
2+
3+
**What kind of change does this PR introduce?**
4+
5+
- [ ] bugfix
6+
- [ ] feature
7+
- [ ] refactoring / style
8+
- [ ] build / chore
9+
- [ ] documentation
10+
11+
**Did you add tests for your changes?**
12+
13+
- [ ] Yes, my code is well tested
14+
- [ ] Not relevant
15+
16+
**If relevant, did you update the documentation?**
17+
18+
- [ ] Yes, I've updated the documentation
19+
- [ ] Not relevant
20+
21+
**Summary**
22+
23+
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
24+
<!-- Try to link to an open issue for more information. -->
25+
26+
**Does this PR introduce a breaking change?**
27+
<!-- If this PR introduces a breaking change, please describe the impact and a migration path for existing applications. -->
28+
29+
**Other information**

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node_version: [10, 12, 14]
15+
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Use Node.js ${{ matrix.node_version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node_version }}
22+
- name: Install
23+
run: yarn install --pure-lockfile
24+
- name: Test
25+
run: yarn test:cov
26+
- uses: coverallsapp/[email protected]
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
parallel: true
30+
31+
coverage:
32+
needs: test
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: coverallsapp/[email protected]
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
parallel-finished: true

0 commit comments

Comments
 (0)