Skip to content

Commit 597aac6

Browse files
committed
Switch to GitHub Actions CI
1 parent 569681b commit 597aac6

3 files changed

Lines changed: 39 additions & 9 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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-
```
8+
```sh
99
$ npm install bin-wrapper
1010
```
1111

@@ -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')
@@ -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])

0 commit comments

Comments
 (0)