From 9994802f80402590cf3aa4b9d8c99c2702649795 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Mon, 24 Jun 2024 11:58:05 -0700 Subject: [PATCH] Adds GitHub Actions CI, removes `.travis.yml` --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .travis.yml | 9 --------- 2 files changed, 23 insertions(+), 9 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..55ddf1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + workflow_dispatch: + +jobs: + test: + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + os: [ ubuntu-latest, macos-latest, windows-latest ] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + 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 47f9bcc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -os: - - linux - - osx - - windows -language: node_js -node_js: - - node - - '10' - - '8'