From ef539746f223547909ed9509deedd459c76ef819 Mon Sep 17 00:00:00 2001 From: Koji Shimba Date: Mon, 17 Apr 2023 15:55:01 +0900 Subject: [PATCH 1/2] Remove Travis CI config --- .travis.yml | 16 ---------------- README.md | 2 -- 2 files changed, 18 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 352f16c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -dist: trusty -sudo: false -language: node_js -node_js: - - "node" - - "lts/*" - -install: - - npm install -g npm - - npm ci - - make build - -cache: - bundler: true - directories: - - node_modules diff --git a/README.md b/README.md index 9e13227..0908a47 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # react-from-html -[![Build Status](https://travis-ci.org/bitjourney/react-from-html.svg?branch=master)](https://travis-ci.org/bitjourney/react-from-html) [![npm version](https://badge.fury.io/js/%40bitjourney%2Freact-from-html.svg)](https://badge.fury.io/js/%40bitjourney%2Freact-from-html) - This module provides a way to embed HTML snippets into React elements. Its behavior alikes `dangerouslySetInnerHTML`, but does as normal React elements. In other words, this is the inverse of `ReactDOMServer.renderToString()`, which From dd322aa30274c38f32167d2ef557597e256af595 Mon Sep 17 00:00:00 2001 From: Koji Shimba Date: Mon, 17 Apr 2023 15:54:34 +0900 Subject: [PATCH 2/2] Run tests with GitHub Actions --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f9939da --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI + +on: + - pull_request + - push + +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 16 + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: make test