From 7595c635dbaf454fcade97e4e4435e7919a59f5c Mon Sep 17 00:00:00 2001 From: Pavel Horal Date: Sun, 7 Apr 2024 21:51:16 +0200 Subject: [PATCH] Use to GitHub Actions instead of Travis CI --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 4 ---- README.md | 2 -- 3 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..8854e732 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node_version: [18, 20, 21] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node_version }} + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6123599f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "node" - - "10" diff --git a/README.md b/README.md index 21fba128..ef428ef7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Turndown -[![Build Status](https://travis-ci.org/domchristie/turndown.svg?branch=master)](https://travis-ci.org/domchristie/turndown) - Convert HTML into Markdown with JavaScript. ## Project Updates