Skip to content

Commit

Permalink
chore: switch to github actions (#95)
Browse files Browse the repository at this point in the history
* chore: switch to github actions

* fix: ci

* fix: github actions

* fix: action

* fix: action

* chore: remove travis script

* fix: set yarn version

* fix: ci

Co-authored-by: Justin Schrader <[email protected]>
  • Loading branch information
icd2k3 and jschrader-nr authored Mar 11, 2020
1 parent 5b74561 commit 735d135
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 15 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,33 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4
- run: export PATH="$HOME/.yarn/bin:$PATH"
- run: yarn run travis
- name: yarn install
uses: borales/[email protected]
with:
cmd: install
- name: yarn build
uses: borales/[email protected]
with:
cmd: build
- name: yarn lint
uses: borales/[email protected]
with:
cmd: lint
- name: yarn types
uses: borales/[email protected]
with:
cmd: types
- name: yarn test
uses: borales/[email protected]
with:
cmd: test
- name: yarn test-build
uses: borales/[email protected]
with:
cmd: test-build
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.14.1
v12.16.1
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"types": "yarn type-src && yarn type-descriptions",
"type-src": "tsc -p tsconfig.json",
"type-descriptions": "tsc -p types/react-router-breadcrumbs-hoc",
"travis": "sh ./scripts/travis.sh",
"lint": "eslint ./src/**"
},
"husky": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ yarn build && \
yarn run lint && \
yarn types && \
jest && \
yarn test-build && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
yarn test-build
# cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

0 comments on commit 735d135

Please sign in to comment.