From fbad1c9f1f4d5fdbc44ee1f7e536d5664e9d0dbb Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 28 Nov 2020 13:32:03 +0700 Subject: [PATCH] Move to GitHub Actions --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 15 --------------- package.json | 1 - readme.md | 2 +- 4 files changed, 27 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..4a1bf18b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 14 + - 12 + - 10 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test + - uses: codecov/codecov-action@v1 + if: matrix.os == 'ubuntu-latest' && matrix.node_version == 14 + with: + fail_ci_if_error: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7e1a0e03..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - '12' - - '10' -after_success: - - './node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov' -before_deploy: - - npm run docs -deploy: - - provider: pages - skip_cleanup: true - local_dir: docs/ - github_token: $GITHUB_TOKEN - on: - tags: true diff --git a/package.json b/package.json index c55e1749..c7902064 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "ava": "^2.0.0", "awesome-typescript-loader": "^5.2.1", "callsites": "^3.1.0", - "codecov": "^3.8.1", "del-cli": "^3.0.1", "dot-prop": "^6.0.1", "license-webpack-plugin": "^2.3.1", diff --git a/readme.md b/readme.md index f9ab8ca8..c61c22ff 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@

-[![Build Status](https://travis-ci.org/sindresorhus/ow.svg?branch=master)](https://travis-ci.org/sindresorhus/ow) [![Coverage Status](https://codecov.io/gh/sindresorhus/ow/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/ow) [![gzip size](https://badgen.net/bundlephobia/minzip/ow)](https://bundlephobia.com/result?p=ow) [![install size](https://packagephobia.now.sh/badge?p=ow)](https://packagephobia.now.sh/result?p=ow) +[![Coverage Status](https://codecov.io/gh/sindresorhus/ow/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/ow) [![gzip size](https://badgen.net/bundlephobia/minzip/ow)](https://bundlephobia.com/result?p=ow) [![install size](https://packagephobia.now.sh/badge?p=ow)](https://packagephobia.now.sh/result?p=ow) > Function argument validation for humans