Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 4e74d29

Browse files
authored
Merge pull request #9 from blocknotes/github-actions
Add Github Actions specs
2 parents 2295c03 + 037d0d8 commit 4e74d29

3 files changed

Lines changed: 41 additions & 34 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/specs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Specs
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
ruby: ['2.5', '2.6', '2.7']
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
27+
- name: Run tests
28+
run: bundle exec rake
29+
30+
- name: Archive screenshots for failed tests
31+
uses: actions/upload-artifact@v2
32+
if: failure()
33+
with:
34+
name: test-failed-screenshots
35+
path: spec/dummy/tmp/screenshots

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Active Admin Medium Editor [![Gem Version](https://badge.fury.io/rb/activeadmin_medium_editor.svg)](https://badge.fury.io/rb/activeadmin_medium_editor) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_medium_editor.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_medium_editor)
1+
# Active Admin Medium Editor [![Gem Version](https://badge.fury.io/rb/activeadmin_medium_editor.svg)](https://badge.fury.io/rb/activeadmin_medium_editor) [![Specs](https://github.com/blocknotes/activeadmin_medium_editor/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_medium_editor/actions/workflows/specs.yml)
22

33
An Active Admin plugin to use [medium-editor](https://github.com/yabwe/medium-editor), a compact and clean WYSIWYG editor.
44

@@ -7,11 +7,13 @@ An Active Admin plugin to use [medium-editor](https://github.com/yabwe/medium-ed
77
![screenshot](screenshot.png)
88

99
## Usage
10+
1011
- After the installation, select some text in the editor
1112
- A pop-up menu is shown with the available buttons
1213
- Click on a button and the effect will be applied to the selected text
1314

1415
## Install
16+
1517
- After installing Active Admin, add to your Gemfile: `gem 'activeadmin_medium_editor'` (and execute *bundle*)
1618
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
1719
```scss
@@ -57,13 +59,16 @@ f.input :description, as: :medium_editor, input_html: { data: { options: { toolb
5759
For details about the buttons' effect please refer to medium-editor documentation.
5860

5961
## Do you like it? Star it!
62+
6063
If you use this component just star it. A developer is more motivated to improve a project when there is some interest. My other [Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source).
6164

6265
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
6366

6467
## Contributors
68+
6569
- [Mattia Roccoberton](http://blocknot.es): author
6670
- The good guys that opened issues and pull requests from time to time
6771

6872
## License
73+
6974
The gem is available as open-source under the terms of the [MIT](LICENSE.txt).

0 commit comments

Comments
 (0)