diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..e0143060 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,23 @@ +name: run-tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install + - run: yarn build:packages + - run: yarn audit-ci + - run: yarn lint + - run: yarn test diff --git a/README.md b/README.md index 3f544ecb..607cac2b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A renderless and extendable rich-text editor for [Vue.js](https://github.com/vue [![](https://img.shields.io/npm/dm/tiptap.svg)](https://npmcharts.com/compare/tiptap?minimal=true) [![](https://img.shields.io/npm/l/tiptap.svg)](https://www.npmjs.com/package/tiptap) [![](https://img.badgesize.io/https://unpkg.com/tiptap/dist/tiptap.min.js?compression=gzip&label=size&colorB=000000)](https://www.npmjs.com/package/tiptap) -[![Build Status](https://travis-ci.org/ueberdosis/tiptap.svg?branch=master)](https://travis-ci.org/ueberdosis/tiptap) +[![Build Status](https://github.com/ueberdosis/tiptap/workflows/run-tests/badge.svg)](https://github.com/ueberdosis/tiptap/actions) ## Why I built tiptap I was looking for a text editor for [Vue.js](https://github.com/vuejs/vue) and found some solutions that didn't really satisfy me. The editor should be easy to extend and not based on old dependencies such as jQuery. For React there is already a great editor called [Slate.js](https://github.com/ianstormtaylor/slate), which impresses with its modularity. I came across [Prosemirror](https://github.com/prosemirror) and decided to build on it. Prosemirror is a toolkit for building rich-text editors that are already in use at many well-known companies such as *Atlassian* or *New York Times*.