diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..d9b54266 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: ci +on: + push: + branches: ['*'] + pull_request: +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: ['10.13.0', '12', '14', '16'] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm run build + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e3699a05..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -dist: bionic -node_js: - - '10.13.0' - - '10' - - '12' - - 'node' diff --git a/README.md b/README.md index 510e6b9f..508f7c48 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # node-qrcode > QR code/2d barcode generator. -[![Travis](https://img.shields.io/travis/soldair/node-qrcode.svg?style=flat-square)](http://travis-ci.org/soldair/node-qrcode) -[![npm](https://img.shields.io/npm/v/qrcode.svg?style=flat-square)](https://www.npmjs.com/package/qrcode) -[![npm](https://img.shields.io/npm/dt/qrcode.svg?style=flat-square)](https://www.npmjs.com/package/qrcode) -[![npm](https://img.shields.io/npm/l/qrcode.svg?style=flat-square)](https://github.com/soldair/node-qrcode/blob/master/license) +[![ci](https://github.com/soldair/node-qrcode/workflows/ci/badge.svg)](https://github.com/soldair/node-qrcode/actions) +[![npm](https://img.shields.io/npm/v/qrcode.svg)](https://www.npmjs.com/package/qrcode) +[![npm](https://img.shields.io/npm/dt/qrcode.svg)](https://www.npmjs.com/package/qrcode) +[![npm](https://img.shields.io/npm/l/qrcode.svg)](https://github.com/soldair/node-qrcode/blob/master/license) - [Highlights](#highlights) - [Installation](#installation)