diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..a9e9631 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: Node.js CI +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run lint + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a35089a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: -- '12.0' -- '10.0' -before_script: - - npm run lint diff --git a/hook.sh b/hook.sh index b469f12..1a7a9e2 100755 --- a/hook.sh +++ b/hook.sh @@ -4,5 +4,3 @@ set -ex npm run lint npm run test - -node package.json