diff --git a/.editorconfig b/.editorconfig index bb00cde..f5aad5e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,6 +16,6 @@ indent_size = 2 indent_style = space indent_size = 2 -[.eslintrc] +[*.yml] indent_style = space indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..211b99a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node: [ 14.x, 16.x, 18.x ] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npm run lint + - run: npm run build + - run: npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 21a6756..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "8" -script: "npm run-script ci" -after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"