From 1ba9ccdc7d17624cfced7b791f40dbea1d368d8a Mon Sep 17 00:00:00 2001 From: Denis Seleznev Date: Tue, 12 Jan 2021 01:18:17 +0300 Subject: [PATCH] Add github action --- .github/workflows/nodejs.yml | 23 +++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/nodejs.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..db783fa --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,23 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [15.x] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + npm run build + npm test + env: + CI: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e01b115..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - stable - -after_success: - - npm i coveralls - - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && echo "Coverage data was sent to coveralls!"