From 1829f9f8c37483d47e17122bccd3bd11da23af50 Mon Sep 17 00:00:00 2001 From: Nigel Gutzmann Date: Mon, 2 Mar 2026 11:49:08 -0800 Subject: [PATCH 1/3] test ci --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index f0952cb..38735b8 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,7 @@ 14 Ormiscaig, Aultbea, Achnasheen, IV22 2JJ U.K. */ + const beamcoder = require('bindings')('beamcoder'); const beamstreams = require('./beamstreams.js'); From deda4934b8aee6588de64045a066a063f8a5a350 Mon Sep 17 00:00:00 2001 From: Nigel Gutzmann Date: Mon, 2 Mar 2026 11:56:19 -0800 Subject: [PATCH 2/3] feat(ci): add testing and linting to GitHub Actions Add a test job to the build workflow that runs ESLint and npm test, bringing GitHub Actions to feature parity with CircleCI. Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a09f562..b0c7c73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,27 @@ on: workflow_dispatch: jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 22 + + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y libvpx-dev + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run ESLint + run: npx eslint '**/*.js' + + - name: Run tests + run: npm test + prebuild: strategy: matrix: From 674dac7f172ca8b63481cdd08bdb26cf9740835d Mon Sep 17 00:00:00 2001 From: Nigel Gutzmann Date: Tue, 3 Mar 2026 08:42:53 -0800 Subject: [PATCH 3/3] fix(ci): use full FFmpeg build for tests Install FFmpeg from savoury1/ffmpeg5 PPA (same as CircleCI) to get: - HTTPS protocol support for demuxer tests - libx264 software encoder instead of hardware encoder - Full codec support needed for all tests This matches CircleCI's FFmpeg setup and should fix test failures. Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0c7c73..5d67771 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,10 +14,15 @@ jobs: with: node-version: 22 - - name: Install system dependencies - run: sudo apt-get update && sudo apt-get install -y libvpx-dev - - - name: Install dependencies + - name: Install FFmpeg with full codec support + run: | + sudo apt-get update + sudo apt-get install -y software-properties-common + sudo add-apt-repository -y ppa:savoury1/ffmpeg5 + sudo apt-get update + sudo apt-get install -y libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev libvpx-dev + + - name: Install dependencies and build run: yarn install --frozen-lockfile - name: Run ESLint