Skip to content

Commit

Permalink
Initial v3 setup
Browse files Browse the repository at this point in the history
  • Loading branch information
njoyard committed Nov 13, 2023
1 parent b092615 commit ea3890e
Show file tree
Hide file tree
Showing 128 changed files with 1,797 additions and 40,053 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,43 @@ on:
- master
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 21]
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
node:
- 18
- 20
name: Test Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
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 ffmpeg
uses: ConorMacBride/install-package@v1
with:
apt: ffmpeg
brew: ffmpeg
choco: ffmpeg

- name: Install dependencies
run: yarn

- name: Build
run: yarn build

- name: Run tests
run: yarn test
- 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
- name: Store coverage
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "linux-node-18,linux-node-20,linux-node-21"
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }}
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
*.project
build
coverage
node_modules
.nyc_output
*.swp
.idea
*.iml
coverage
types
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.md
.git*
test/
examples/
src/
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

Loading

0 comments on commit ea3890e

Please sign in to comment.