diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..29410c7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + env: + CI: true + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm install -g npm@latest # to support newer lock file + - run: npm ci + - run: npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c24da53..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -node_js: - - 10 - - 12 - - 14 -before_install: - - npm install -g npm@latest -script: - - npm run lint - - npm run test -after_success: - - npm run coverage diff --git a/README.md b/README.md index 60c6e04..0f1d21d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # gulp-requirejs [![gulp-requirejs on npm](https://img.shields.io/npm/v/gulp-requirejs.svg?style=flat)](https://www.npmjs.com/package/gulp-requirejs) -[![Dependency Status](https://david-dm.org/jorrit/gulp-requirejs/status.svg)](https://david-dm.org/jorrit/gulp-requirejs) -[![Development Dependency Status](https://david-dm.org/jorrit/gulp-requirejs/dev-status.svg)](https://david-dm.org/jorrit/gulp-requirejs?type=dev) -[![Build Status](https://travis-ci.org/jorrit/gulp-requirejs.svg?branch=master)](https://travis-ci.org/jorrit/gulp-requirejs) +![Build Status](https://github.com/jorrit/gulp-requirejs/workflows/Node.js%20CI/badge.svg) [![Coverage](https://coveralls.io/repos/github/jorrit/gulp-requirejs/badge.svg)](https://coveralls.io/github/jorrit/gulp-requirejs) ## Information