Fix promise rejection #73
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
name: Lint and test | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: yarn install | |
- name: Run lint | |
run: yarn run lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tests | |
run: yarn test | |
- name: Upload code coverage | |
env: | |
TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: CODECOV_TOKEN="$TOKEN" bash <(curl -s https://codecov.io/bash) |