From 4beb437e229b5ee824467acbb3f1bc2cccf2d66a Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 30 May 2022 13:29:47 +0200 Subject: [PATCH] ci: switch from Travis to GitHub Actions --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 19 insertions(+), 10 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..2352650 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: + push: + branches: ['master'] + pull_request: + branches: ['*'] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 17, 16, 14] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 44f1164..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js -node_js: -- '9' -- '8' -- '7' -- '6' -- '5' -- '4' -- '0.12' -- '0.10'