Skip to content

Commit 106f80f

Browse files
committed
Use Actions
1 parent dbdf42d commit 106f80f

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: main
2+
on:
3+
- pull_request
4+
- push
5+
jobs:
6+
main:
7+
name: ${{matrix.node}}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: dcodeIO/setup-node-nvm@master
12+
with:
13+
node-version: ${{matrix.node}}
14+
- run: npm install
15+
- run: npm test
16+
- uses: codecov/codecov-action@v1
17+
strategy:
18+
matrix:
19+
node:
20+
- lts/dubnium
21+
- node

.travis.yml

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

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function findAndReplace(tree, find, replace, options) {
6060
nodes.push({type: 'text', value: node.value.slice(start, position)})
6161
}
6262

63-
if (typeof value === 'string' && value.length !== 0) {
63+
if (typeof value === 'string' && value.length > 0) {
6464
value = {type: 'text', value: value}
6565
}
6666

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ abide by its terms.
131131

132132
<!-- Definition -->
133133

134-
[build-badge]: https://img.shields.io/travis/syntax-tree/mdast-util-find-and-replace.svg
134+
[build-badge]: https://github.com/syntax-tree/mdast-util-find-and-replace/workflows/main/badge.svg
135135

136-
[build]: https://travis-ci.org/syntax-tree/mdast-util-find-and-replace
136+
[build]: https://github.com/syntax-tree/mdast-util-find-and-replace/actions
137137

138138
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-find-and-replace.svg
139139

0 commit comments

Comments
 (0)