From 72251982d80cd91d8bb574ae8035824a4e29c0a3 Mon Sep 17 00:00:00 2001 From: clux Date: Thu, 24 Jun 2021 22:38:22 +0100 Subject: [PATCH] github actions node --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1c4ecd6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: + push: + pull_request: + +jobs: + npm-test: + runs-on: ubuntu-16.04 + strategy: + matrix: + node: [ '14' ] + name: Node ${{ matrix.node }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npm test + - run: npm install coveralls + - run: npm run coverage > lcov.info + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./lcov.info diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8138d71..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -sudo: false -node_js: - - lts/* - - node -notifications: - email: - on_success: change - on_failure: always -after_script: - - npm install coveralls - - 'npm run coverage | coveralls'