From dcd8969184528dea6e643f1cc3925882c2d8e593 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:17:24 +0200 Subject: [PATCH 1/7] add github actions workflow --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..54e14216 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: run-tests + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: install + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: build:packages + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: audit-ci + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: lint + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: test From 8622ea3c2a8721ee3f0fb7ed7fc77a25b0acde5a Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:19:02 +0200 Subject: [PATCH 2/7] fix whitespace --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54e14216..cbf84622 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,9 +21,9 @@ jobs: - uses: borales/actions-yarn@v2.0.0 with: cmd: audit-ci - - uses: borales/actions-yarn@v2.0.0 + - uses: borales/actions-yarn@v2.0.0 with: cmd: lint - - uses: borales/actions-yarn@v2.0.0 + - uses: borales/actions-yarn@v2.0.0 with: cmd: test From d5ca3fc76eab7d19f1245db49b90a91bdaafb611 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:25:03 +0200 Subject: [PATCH 3/7] update github workflow --- .github/workflows/main.yml | 29 ----------------------------- .github/workflows/run-tests.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index cbf84622..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: run-tests - -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: install - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: build:packages - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: audit-ci - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: lint - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: test diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..54ffa3ca --- /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: [12.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 From 45b47adc28b8d7a5dc19984f99e15abc79d147df Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:28:22 +0200 Subject: [PATCH 4/7] add another node version to the test suite --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 54ffa3ca..4373c694 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [12.x] + node-version: [12.x, 14.x] steps: - uses: actions/checkout@v1 From 5445dfc6082d4ec558626e973555dc6edc323a3f Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:28:32 +0200 Subject: [PATCH 5/7] replace travis ci badge with github actions badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*. From ffa7b23a7c3505b158e058a310af8cb5cd5e213e Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:31:19 +0200 Subject: [PATCH 6/7] add older and newer node versions --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4373c694..b169127f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x] + node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v1 From 87c368240ab2b95acfda5bdbff77c8e03fae23e7 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Jul 2020 17:33:42 +0200 Subject: [PATCH 7/7] test node 10 only --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b169127f..e0143060 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [10.x] steps: - uses: actions/checkout@v1