Skip to content

Commit a2730fa

Browse files
authored
Merge pull request #2 from fluture-js/avaq/actions
Switch from Travis to GitHub actions
2 parents 660af4b + 0acfb0f commit a2730fa

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed

.github/PULL_REQUEST_TEMPLATE/initial-pr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ This pull request adds everything the project needs to be at its first release.
2626
- Change `umd` to `cjs` in `rollup.config.js` and remove `output.name`.
2727
- Change `eslint-es3` to `eslint-es6` in `.eslintrc.json`.
2828

29+
- [ ] Set up integration with Codecov:
30+
- Find the Codecov token in the Codecov settings for your new repository:
31+
https://codecov.io/gh/{owner}/{repository}/settings
32+
- Save it as `CODECOV_TOKEN` in the secrets for your new repository:
33+
https://github.com/{owner}/{repository}/settings/secrets
34+
2935
- [ ] Remove the `initial-pr.md` pull-request template.
3036

3137
- [ ] Write the code.

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
name: Automated Tests
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v1
16+
- name: Install NodeJS
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12.x
20+
- name: Install Dependencies
21+
run: npm install
22+
- name: Execute Tests
23+
run: npm test
24+
- name: Upload Coverage Report
25+
run: npm run codecov
26+
env:
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)