minor: fix ffmpeg 7 compatibility #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Testing | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Run tests | |
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 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 | |
- name: Generate coverage report | |
run: yarn coverage | |
- name: Store coveralls coverage | |
uses: coverallsapp/github-action@v2 | |
with: | |
flag-name: linux-node-${{ matrix.node }} | |
parallel: true | |
- name: Upload to codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: coverage/lcov.info | |
name: ubuntu-latest-node-${{ matrix.node }} | |
upload-coverage: | |
name: Upload coverage | |
needs: test | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload to coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true | |
carryforward: "linux-node-18,linux-node-20,linux-node-21" |