diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5a1969b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: [push, pull_request] + +jobs: + test: + strategy: + matrix: + include: + - node: '14.x' + os: ubuntu-latest + - node: '16.x' + os: ubuntu-latest + - node: '18.x' + os: ubuntu-latest + - node: '20.x' + os: ubuntu-latest + - node: '22.x' + os: ubuntu-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5d6b173..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: node_js -node_js: - - "4.0" - - "0.12" - - "0.11" - - "0.10" - - "iojs" - - "iojs-v1.0.4" - - "v4.2.1" - - "v4.3.0" - - "v6.9.1" - - "v8.11.3" - - "v10.7.0" diff --git a/README.md b/README.md index e113d48..a6a3423 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > parse / stringify sql (select grammar) in js. -[![Build Status][travis-image]][travis-url] +[![Build Status][github-actions-image]][github-actions-url] [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] @@ -82,8 +82,8 @@ var sql = sqlParser.stringify(ast); MIT -[travis-image]: https://api.travis-ci.org/JavaScriptor/js-sql-parser.svg -[travis-url]: https://travis-ci.org/JavaScriptor/js-sql-parser +[github-actions-image]: https://github.com/JavaScriptor/js-sql-parser/actions/workflows/ci.yml/badge.svg?branch=master +[github-actions-url]: https://github.com/JavaScriptor/js-sql-parser/actions/workflows/ci.yml [npm-image]: https://img.shields.io/npm/v/js-sql-parser.svg [npm-url]: https://npmjs.org/package/js-sql-parser [downloads-image]: https://img.shields.io/npm/dm/js-sql-parser.svg