Skip to content

Commit 44dca3d

Browse files
committed
Switch to GitHub Actions CI and tweak README.md
1 parent 569681b commit 44dca3d

3 files changed

Lines changed: 46 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
env:
9+
FORCE_COLOR: 2
10+
11+
jobs:
12+
test:
13+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
node: [6, 8, 10, 12, 14, 16]
20+
os: [ubuntu-latest, windows-latest]
21+
22+
steps:
23+
- name: Clone repository
24+
uses: actions/checkout@v2
25+
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v2
28+
with:
29+
node-version: ${{ matrix.node }}
30+
31+
- name: Install npm dependencies
32+
run: npm install
33+
34+
- name: Run tests
35+
run: npm test

.travis.yml

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

readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# bin-wrapper [![Build Status](https://travis-ci.org/kevva/bin-wrapper.svg?branch=master)](https://travis-ci.org/kevva/bin-wrapper)
1+
# bin-wrapper [![CI](https://github.com/kevva/bin-wrapper/actions/workflows/ci.yml/badge.svg)](https://github.com/kevva/bin-wrapper/actions/workflows/ci.yml)
22

33
> Binary wrapper that makes your programs seamlessly available as local dependencies
44
55

66
## Install
77

8-
```
9-
$ npm install bin-wrapper
8+
```sh
9+
npm install bin-wrapper
1010
```
1111

1212

@@ -15,7 +15,7 @@ $ npm install bin-wrapper
1515
```js
1616
const BinWrapper = require('bin-wrapper');
1717

18-
const base = 'https://github.com/imagemin/gifsicle-bin/raw/master/vendor';
18+
const base = 'https://github.com/imagemin/gifsicle-bin/raw/main/vendor';
1919
const bin = new BinWrapper()
2020
.src(`${base}/macos/gifsicle`, 'darwin')
2121
.src(`${base}/linux/x64/gifsicle`, 'linux', 'x64')
@@ -50,15 +50,15 @@ Type: `Object`
5050

5151
##### skipCheck
5252

53-
Type: `boolean`<br>
54-
Default: `false`
53+
* Type: `boolean`
54+
* Default: `false`
5555

5656
Whether to skip the binary check or not.
5757

5858
##### strip
5959

60-
Type: `number`<br>
61-
Default: `1`
60+
* Type: `number`
61+
* Default: `1`
6262

6363
Strip a number of leading paths from file names on extraction.
6464

@@ -110,7 +110,7 @@ Returns the full path to your binary.
110110

111111
Type: `string`
112112

113-
Define a [semver range](https://github.com/isaacs/node-semver#ranges) to check
113+
Define a [semver range](https://github.com/npm/node-semver#ranges) to check
114114
the binary against.
115115

116116
### .run([arguments])
@@ -120,8 +120,8 @@ using the URL provided in `.src()`.
120120

121121
#### arguments
122122

123-
Type: `Array`<br>
124-
Default: `['--version']`
123+
* Type: `Array`
124+
* Default: `['--version']`
125125

126126
Command to run the binary with. If it exits with code `0` it means that the
127127
binary is working.

0 commit comments

Comments
 (0)