From e9fa721ca89efc7f1a75a4b366079179c7172481 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 2 Jun 2021 07:33:48 -0700 Subject: [PATCH] Switch from Travis to GitHub Actions (#1978) --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ .travis.yml | 5 ----- 2 files changed, 21 insertions(+), 5 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 00000000..9e2bd3de --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: ci +on: [push,pull_request] +jobs: + test: + name: Node ${{ matrix.node }} / ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + node: + - '16' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npm run build --if-present + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be35d187..00000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - lts/* -cache: - npm: false