diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c6a84e0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + + - name: Run CI + run: npm run test + + - name: Lint + if: success() || failure() + run: npm run lint diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0633751..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -sudo: required - -dist: trusty - -language: node_js - -node_js: 14 -env: - - TASK=test - - TASK=lint -matrix: - fast_finish: true - allow_failures: - - env: TASK=lint -script: - - npm run $TASK - -notifications: - email: false