Skip to content

Commit 1ffc52f

Browse files
committed
chore: move to github actions for CI
1 parent 68d5c94 commit 1ffc52f

File tree

9 files changed

+779
-94
lines changed

9 files changed

+779
-94
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI Testing
2+
on: pull_request
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node: [18, 20, 21]
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Install flvtool2
13+
run: sudo gem install flvtool2
14+
- name: Install ffmpeg
15+
run: sudo apt update && sudo apt install -y ffmpeg
16+
- name: Setup node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node }}
20+
cache: yarn
21+
- name: Install dependencies
22+
run: yarn
23+
- name: Run tests
24+
run: yarn test

.travis.yml

-23
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Fluent ffmpeg-API for node.js [![Build Status](https://secure.travis-ci.org/fluent-ffmpeg/node-fluent-ffmpeg.svg?branch=master)](http://travis-ci.org/fluent-ffmpeg/node-fluent-ffmpeg)
1+
# Fluent ffmpeg-API for node.js
2+
23
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffluent-ffmpeg%2Fnode-fluent-ffmpeg.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffluent-ffmpeg%2Fnode-fluent-ffmpeg?ref=badge_shield)
34

45
> **Fluent-ffmpeg is looking for new maintainers**

doc/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h3> </h3>
4141

4242

4343
<section>
44-
<article><h1>Fluent ffmpeg-API for node.js <a href="http://travis-ci.org/fluent-ffmpeg/node-fluent-ffmpeg"><img src="https://secure.travis-ci.org/fluent-ffmpeg/node-fluent-ffmpeg.svg?branch=master" alt="Build Status"></a></h1><p>This library abstracts the complex command-line usage of ffmpeg into a fluent, easy to use node.js module. In order to be able to use this module, make sure you have <a href="http://www.ffmpeg.org">ffmpeg</a> installed on your system (including all necessary encoding libraries like libmp3lame or libx264).</p>
44+
<article><h1>Fluent ffmpeg-API for node.js</h1><p>This library abstracts the complex command-line usage of ffmpeg into a fluent, easy to use node.js module. In order to be able to use this module, make sure you have <a href="http://www.ffmpeg.org">ffmpeg</a> installed on your system (including all necessary encoding libraries like libmp3lame or libx264).</p>
4545
<blockquote>
4646
<p>This is the documentation for fluent-ffmpeg 2.x.
4747
You can still access the code and documentation for fluent-ffmpeg 1.7 <a href="https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/tree/1.x">here</a>.</p>

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
},
2020
"repository": "git://github.com/fluent-ffmpeg/node-fluent-ffmpeg.git",
2121
"devDependencies": {
22-
"mocha": "latest",
23-
"should": "latest",
24-
"jsdoc": "latest"
22+
"mocha": "^10.0.0",
23+
"should": "^13.0.0",
24+
"jsdoc": "^4.0.0"
2525
},
2626
"dependencies": {
27-
"async": ">=0.2.9",
27+
"async": "^0.2.9",
2828
"which": "^1.1.1"
2929
},
3030
"engines": {
31-
"node": ">=0.8.0"
31+
"node": ">=18"
3232
},
3333
"main": "index",
3434
"scripts": {
3535
"test": "make test"
3636
}
37-
}
37+
}

test/capabilities.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,7 @@ describe('Capabilities', function() {
531531
var ALT_FLVTOOL_PATH;
532532
var skipAltTest = false;
533533
var skipTest = false;
534-
535-
// Skip test if we know travis failed to instal flvtool2
534+
536535
if (process.env.FLVTOOL2_PRESENT === 'no') {
537536
skipTest = true;
538537
}

test/processor.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ describe('Processor', function() {
186186
// Skip all niceness tests on windows
187187
var skipNiceness = os.match(/win(32|64)/);
188188

189-
// Skip renice test on OSX + travis (not enough permissions to renice)
190-
var skipRenice = process.env.TRAVIS && os.match(/darwin/);
189+
var skipRenice = false;
191190

192191
(skipNiceness ? it.skip : it)('should properly limit niceness', function() {
193192
this.getCommand({ source: this.testfile, logger: testhelper.logger, timeout: 0.02 })

tools/test-travis.sh

-59
This file was deleted.

0 commit comments

Comments
 (0)