From 6c24ff2035f7d2fef6be64641995b1e7b47d5d51 Mon Sep 17 00:00:00 2001 From: danasilver Date: Mon, 21 Jul 2025 10:13:18 -0400 Subject: [PATCH 1/2] Replace Travis CI with GitHub Actions to run tests. --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 5 ----- 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..4e92d67 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,26 @@ +name: Run Tests on Node.js + +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ["18.x", "20.x", "22.x"] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b9879cc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "6" - - "5" - - "4" From bdb9afc3d62b3738a1c468f8aeef9d30b58afa8e Mon Sep 17 00:00:00 2001 From: danasilver Date: Mon, 21 Jul 2025 10:14:52 -0400 Subject: [PATCH 2/2] Use npm install instead of npm ci. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e92d67..b467fba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Install dependencies - run: npm ci + run: npm install - name: Run tests run: npm test