From ec783f5905ddd9b5ceae956021477870e98a7166 Mon Sep 17 00:00:00 2001 From: LordDashMe Date: Fri, 14 Aug 2026 06:11:46 +0800 Subject: [PATCH] Migrate CI from Travis to GitHub Actions Travis CI is no longer free for this repository, so move the build to GitHub Actions, which is free for public repos. - Add .github/workflows/ci.yml running the test suite on Node 24 for pushes to master and all pull requests, then publishing coverage to Coveralls. - Remove .travis.yml and .coveralls.yml. - Swap the Travis badge in the README for the workflow status badge. --- .coveralls.yml | 1 - .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 14 -------------- README.md | 7 ++----- 4 files changed, 27 insertions(+), 20 deletions(-) delete mode 100644 .coveralls.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 9160059..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -service_name: travis-ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1845533 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '24' + - name: Install dependencies + run: npm install + - name: Run tests + run: npm test + - name: Publish coverage to Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + file: ./jest-coverage/lcov.info diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0d72860..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js -node_js: - - '10' -before_script: - - rm package-lock.json -script: - - npm install - - npm install coveralls --save-dev - - npm test -after_success: - - cat ./jest-coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v -notifications: - on_success: never - on_failure: always diff --git a/README.md b/README.md index 1962719..9dc97e1 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,8 @@

Github Contribution Stats

Get your dynamically generated Github Contribution Stats! :chart_with_upwards_trend: :calendar:

- - - - - + +