Skip to content

Commit b428666

Browse files
updated: replace travis with github actions
1 parent 7f8ae0a commit b428666

File tree

4 files changed

+31
-20
lines changed

4 files changed

+31
-20
lines changed

.github/workflow/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x, 15.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Local Unit Test ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm ci
26+
- run: npm test

.travis.yml

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ $('h1', 'main').forEach(h1 => h1.classList.add('main-title'))
4444

4545
#### Table of Contents
4646

47-
- [$](#)
48-
- [Parameters](#parameters)
47+
* [$](#)
48+
* [Parameters](#parameters)
4949

5050
### $
5151

5252
Simple helper to find DOM nodes returning them as array like loopable object
5353

5454
#### Parameters
5555

56-
- `selector` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | DOMNodeList)** either the query or the DOM nodes to arraify
57-
- `ctx` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** context defining where the query will search for the DOM nodes
56+
* `selector` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | DOMNodeList)** either the query or the DOM nodes to arraify
57+
* `scope` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** context defining where the query will search for the DOM nodes
5858

5959
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** DOM nodes found as array

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prepare": "npm run build && npm test",
1111
"lint": "eslint index.next.js test.js rollup.config.js",
1212
"build": "rollup -c",
13-
"doc": "documentation readme index.next.js -s API",
13+
"doc": "npx documentation readme index.next.js -s API",
1414
"test": "npm run lint && mocha test.js"
1515
},
1616
"files": [

0 commit comments

Comments
 (0)