Skip to content

Commit

Permalink
chore: move to github actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
njoyard committed Nov 11, 2023
1 parent 68d5c94 commit 1ffc52f
Show file tree
Hide file tree
Showing 9 changed files with 779 additions and 94 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI Testing
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 21]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install flvtool2
run: sudo gem install flvtool2
- name: Install ffmpeg
run: sudo apt update && sudo apt install -y ffmpeg
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: yarn
- name: Run tests
run: yarn test
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 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)
# Fluent ffmpeg-API for node.js

[![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)

> **Fluent-ffmpeg is looking for new maintainers**
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h3> </h3>


<section>
<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>
<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>
<blockquote>
<p>This is the documentation for fluent-ffmpeg 2.x.
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>
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
},
"repository": "git://github.com/fluent-ffmpeg/node-fluent-ffmpeg.git",
"devDependencies": {
"mocha": "latest",
"should": "latest",
"jsdoc": "latest"
"mocha": "^10.0.0",
"should": "^13.0.0",
"jsdoc": "^4.0.0"
},
"dependencies": {
"async": ">=0.2.9",
"async": "^0.2.9",
"which": "^1.1.1"
},
"engines": {
"node": ">=0.8.0"
"node": ">=18"
},
"main": "index",
"scripts": {
"test": "make test"
}
}
}
3 changes: 1 addition & 2 deletions test/capabilities.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,7 @@ describe('Capabilities', function() {
var ALT_FLVTOOL_PATH;
var skipAltTest = false;
var skipTest = false;

// Skip test if we know travis failed to instal flvtool2

if (process.env.FLVTOOL2_PRESENT === 'no') {
skipTest = true;
}
Expand Down
3 changes: 1 addition & 2 deletions test/processor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ describe('Processor', function() {
// Skip all niceness tests on windows
var skipNiceness = os.match(/win(32|64)/);

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

(skipNiceness ? it.skip : it)('should properly limit niceness', function() {
this.getCommand({ source: this.testfile, logger: testhelper.logger, timeout: 0.02 })
Expand Down
59 changes: 0 additions & 59 deletions tools/test-travis.sh

This file was deleted.

Loading

0 comments on commit 1ffc52f

Please sign in to comment.