Skip to content

Commit 848d197

Browse files
committed
Initial v3 setup
1 parent b092615 commit 848d197

File tree

128 files changed

+1675
-39381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1675
-39381
lines changed

.github/workflows/ci.yml

+29-13
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,59 @@ on:
66
- master
77
jobs:
88
test:
9-
name: Run tests
10-
runs-on: ubuntu-latest
119
strategy:
1210
matrix:
13-
node: [18, 20, 21]
11+
os:
12+
- ubuntu-latest
13+
- macos-latest
14+
- windows-latest
15+
node:
16+
- 18
17+
- 20
18+
name: Test Node ${{ matrix.node }} on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
1420
steps:
1521
- name: Checkout
1622
uses: actions/checkout@v4
17-
- name: Install flvtool2
18-
run: sudo gem install flvtool2
19-
- name: Install ffmpeg
20-
run: sudo apt install -y ffmpeg
23+
2124
- name: Setup node
2225
uses: actions/setup-node@v3
2326
with:
2427
node-version: ${{ matrix.node }}
2528
cache: yarn
29+
30+
- name: Install ffmpeg
31+
uses: ConorMacBride/install-package@v1
32+
with:
33+
apt: ffmpeg
34+
brew: ffmpeg
35+
choco: ffmpeg
36+
2637
- name: Install dependencies
2738
run: yarn
39+
40+
- name: Build
41+
run: yarn build
42+
2843
- name: Run tests
29-
run: yarn test
44+
run: yarn test-cov
45+
3046
- name: Generate coverage report
3147
run: yarn coverage
48+
3249
- name: Store coverage
3350
uses: coverallsapp/github-action@v2
3451
with:
35-
flag-name: linux-node-${{ matrix.node }}
52+
flag-name: run-${{ join(matrix.*, '-') }}
3653
parallel: true
3754

38-
upload-coverage:
55+
finish-coverage:
3956
name: Upload coverage
4057
needs: test
41-
if: ${{ always() }}
4258
runs-on: ubuntu-latest
4359
steps:
44-
- name: Coveralls Finished
60+
- name: Upload coverage
4561
uses: coverallsapp/github-action@v2
4662
with:
4763
parallel-finished: true
48-
carryforward: "linux-node-18,linux-node-20,linux-node-21"
64+
carryforward: run-ubuntu-latest-20

.gitignore

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
*.project
1+
build
2+
coverage
23
node_modules
34
.nyc_output
4-
*.swp
5-
.idea
6-
*.iml
7-
coverage
5+
types

.npmignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.md
21
.git*
32
test/
4-
examples/
3+
src/

Makefile

-20
This file was deleted.

0 commit comments

Comments
 (0)