Skip to content

Commit

Permalink
Merge pull request #2 from fluture-js/avaq/actions
Browse files Browse the repository at this point in the history
Switch from Travis to GitHub actions
  • Loading branch information
Avaq authored Nov 23, 2019
2 parents 660af4b + 0acfb0f commit a2730fa
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/initial-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ This pull request adds everything the project needs to be at its first release.
- Change `umd` to `cjs` in `rollup.config.js` and remove `output.name`.
- Change `eslint-es3` to `eslint-es6` in `.eslintrc.json`.

- [ ] Set up integration with Codecov:
- Find the Codecov token in the Codecov settings for your new repository:
https://codecov.io/gh/{owner}/{repository}/settings
- Save it as `CODECOV_TOKEN` in the secrets for your new repository:
https://github.com/{owner}/{repository}/settings/secrets

- [ ] Remove the `initial-pr.md` pull-request template.

- [ ] Write the code.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
test:
name: Automated Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Dependencies
run: npm install
- name: Execute Tests
run: npm test
- name: Upload Coverage Report
run: npm run codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

0 comments on commit a2730fa

Please sign in to comment.