diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..2498eb6 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,22 @@ +name: Linter + +on: [push, pull_request] + +jobs: + linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + - name: Install Dependencies + run: npm install + - run: npm run eslint + - name: Coverage + run: npx nyc --reporter=lcovonly npm run test + env: + CI: true + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5a86c67..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -os: - - linux - - windows - -language: node_js - -sudo: false - -cache: npm - -node_js: - - "8" - - "10" - - "node" - -script: - - if [[ $TRAVIS_OS_NAME == "linux" ]]; then - npm run eslint; - fi - - npm run test-cov - -after_script: - - npm install coveralls - - nyc report --reporter=text-lcov | coveralls