V3 experiments #19
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: | |
build: | |
name: Build fluent-ffmpeg | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
test: | |
name: Run tests | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18, 20, 21] | |
steps: | |
- name: Install flvtool2 | |
run: sudo gem install flvtool2 | |
- name: Install ffmpeg | |
run: sudo apt install -y ffmpeg | |
- name: Run tests | |
run: yarn test-cov | |
- name: Generate coverage report | |
run: yarn coverage | |
- name: Store coverage | |
uses: coverallsapp/github-action@v2 | |
with: | |
flag-name: linux-node-${{ matrix.node }} | |
parallel: true | |
upload-coverage: | |
name: Upload coverage | |
needs: test | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true | |
carryforward: "linux-node-18,linux-node-20,linux-node-21" |