diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c546fbd --- /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.node-version == 14 + with: + fail_ci_if_error: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fd301d7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - '12' - - '10' -after_success: - - './node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls' diff --git a/package.json b/package.json index 6476beb..6274210 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" + "url": "https://sindresorhus.com" }, "engines": { "node": ">=10" @@ -37,9 +37,14 @@ ], "devDependencies": { "ava": "^2.4.0", - "coveralls": "^3.0.6", "nyc": "^15.0.0", "tsd": "^0.11.0", "xo": "^0.25.3" + }, + "nyc": { + "reporter": [ + "text", + "lcov" + ] } } diff --git a/readme.md b/readme.md index 5a03c80..36fff6d 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# normalize-url [![Build Status](https://travis-ci.org/sindresorhus/normalize-url.svg?branch=master)](https://travis-ci.org/sindresorhus/normalize-url) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/normalize-url/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/normalize-url?branch=master) +# normalize-url [![Coverage Status](https://codecov.io/gh/sindresorhus/normalize-url/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/normalize-url) > [Normalize](https://en.wikipedia.org/wiki/URL_normalization) a URL @@ -232,7 +232,6 @@ normalizeUrl('www.sindresorhus.com?b=two&a=one&c=three', { - [compare-urls](https://github.com/sindresorhus/compare-urls) - Compare URLs by first normalizing them - ---