From 73135dd4b57ffe9f1499bc159ce3f1f7e8de9059 Mon Sep 17 00:00:00 2001 From: "M. George Hansen" Date: Mon, 15 Jul 2024 08:10:57 -0700 Subject: [PATCH] chore: replace travis w/ github actions for CI (#20) * chore: replace travis w/ github actions for CI * chore: replace travis w/ github actions for CI * remove node 24 * Update readme with checks badge --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .travis.yml | 11 ----------- README.md | 2 +- 3 files changed, 23 insertions(+), 12 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..67483ed --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: + push: + branches: [mainline] + pull_request: + branches: [mainline] + +jobs: + build: + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + node: [18, 20, 22] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm run build + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3f2f11b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -git: - autocrlf: input -language: node_js -os: - - linux - - osx - - windows -node_js: - - node - - lts/* - - 18 diff --git a/README.md b/README.md index 255225c..d279afd 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![NPM release](https://img.shields.io/npm/v/@websnacksjs/websnacks?style=flat-square)](https://www.npmjs.com/package/@websnacksjs/websnacks "NPM release") [![NPM](https://img.shields.io/npm/l/@websnacksjs/websnacks?style=flat-square)](https://www.mozilla.org/en-US/MPL/2.0/FAQ/ "License info") -[![Build status](https://img.shields.io/travis/com/websnacksjs/websnacks/mainline?style=flat-square)](https://travis-ci.com/websnacksjs/websnacks "Build status for mainline branch") +[![Build status](https://img.shields.io/github/check-runs/websnacksjs/websnacks/mainline?style=flat-square)](https://github.com/websnacksjs/websnacks/actions?query=branch%3Amainline "Build status for mainline branch")