Skip to content

Commit 1f904be

Browse files
committed
feat: change travis to github-actions.
1 parent 4baa4a9 commit 1f904be

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
strategy:
7+
matrix:
8+
include:
9+
- node: '14.x'
10+
os: ubuntu-latest
11+
- node: '16.x'
12+
os: ubuntu-latest
13+
- node: '18.x'
14+
os: ubuntu-latest
15+
- node: '20.x'
16+
os: ubuntu-latest
17+
- node: '22.x'
18+
os: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm install
26+
- run: npm test

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> parse / stringify sql (select grammar) in js.
44
5-
[![Build Status][travis-image]][travis-url]
5+
[![Build Status][github-actions-image]][github-actions-url]
66
[![NPM Version][npm-image]][npm-url]
77
[![NPM Downloads][downloads-image]][downloads-url]
88

@@ -82,8 +82,8 @@ var sql = sqlParser.stringify(ast);
8282

8383
MIT
8484

85-
[travis-image]: https://api.travis-ci.org/JavaScriptor/js-sql-parser.svg
86-
[travis-url]: https://travis-ci.org/JavaScriptor/js-sql-parser
85+
[github-actions-image]: https://github.com/JavaScriptor/js-sql-parser/actions/workflows/ci.yml/badge.svg?branch=master
86+
[github-actions-url]: https://github.com/JavaScriptor/js-sql-parser/actions/workflows/ci.yml
8787
[npm-image]: https://img.shields.io/npm/v/js-sql-parser.svg
8888
[npm-url]: https://npmjs.org/package/js-sql-parser
8989
[downloads-image]: https://img.shields.io/npm/dm/js-sql-parser.svg

0 commit comments

Comments
 (0)