diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6d208a7..04c6453 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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/actions-yarn@v2.1.0 + with: + cmd: install + - name: yarn build + uses: borales/actions-yarn@v2.1.0 + with: + cmd: build + - name: yarn lint + uses: borales/actions-yarn@v2.1.0 + with: + cmd: lint + - name: yarn types + uses: borales/actions-yarn@v2.1.0 + with: + cmd: types + - name: yarn test + uses: borales/actions-yarn@v2.1.0 + with: + cmd: test + - name: yarn test-build + uses: borales/actions-yarn@v2.1.0 + with: + cmd: test-build + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} env: CI: true diff --git a/.nvmrc b/.nvmrc index cae54a2..59db31c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v12.14.1 +v12.16.1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 439f8d1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "12.14.1" -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4 - - export PATH="$HOME/.yarn/bin:$PATH" -script: - - yarn run travis diff --git a/package.json b/package.json index 2bc605c..677c4f2 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/scripts/travis.sh b/scripts/travis.sh index 73c85b2..03cb4f3 100644 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -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