diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..6704f9d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,44 @@ +name: Node.js CI + +on: + schedule: + - cron: '23 4 * * *' # Once, nightly + push: + branches: + - main + - master + pull_request: + +jobs: + + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 15, 14, 12, 10 ] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run tests-only + + lint: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 14 ] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run lint diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1eab728..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: node_js - -import: - - nodejs/ci-config-travis:lts/gte-10.yml - -env: - - TESTS=true - -jobs: - fast_finish: true - include: - - node_js: lts/* - env: LINT=true - -script: - - 'if [ -n "${LINT-}" ]; then npm run pretest ; fi' - - 'if [ -n "${TESTS-}" ]; then npm run tests-only ; fi' - -cache: - npm: false