Skip to content

Commit 15ef123

Browse files
committed
chore: switch to github action
1 parent 6fcc77b commit 15ef123

File tree

6 files changed

+3470
-2466
lines changed

6 files changed

+3470
-2466
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Use Node.js 20
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
24+
- name: Install
25+
run: npm ci
26+
27+
- name: Test
28+
run: npm test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/node_modules
2+
.idea/

.travis.yml

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

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Element Picker – JavaScript HTML Element Picker Library
22

3-
[![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
3+
![CI](https://github.com/jamesbechet/element-picker/actions/workflows/ci.yml/badge.svg)
4+
[![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
45

5-
[travis-image]: https://img.shields.io/travis/jamesbechet/element-picker/master.svg
6-
[travis-url]: https://travis-ci.org/jamesbechet/element-picker
76
[npm-image]: https://img.shields.io/npm/v/element-picker.svg
87
[npm-url]: https://npmjs.org/package/element-picker
98
[downloads-image]: https://img.shields.io/npm/dm/element-picker.svg
@@ -52,7 +51,9 @@ elementPicker.init({ onClick })
5251
```
5352

5453
### Options
54+
5555
#### `backgroundColor` `{String}` `optional` `default='rgba(0, 0, 0, 0.1)'`
56+
5657
The background color used when an element is being hovered.
5758

5859
## Keywords

0 commit comments

Comments
 (0)