-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
136 changed files
with
2,339 additions
and
40,084 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,95 @@ | ||
name: CI Testing | ||
name: Continuous integration | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
test: | ||
name: Run tests | ||
lint: | ||
name: Lint source files | ||
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 | ||
|
||
- name: Lint source files | ||
run: yarn lint | ||
|
||
unit-tests: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
flag-name: linux-node-${{ matrix.node }} | ||
parallel: true | ||
- name: Upload to codecov | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Run unit tests | ||
run: yarn test tests/unit | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
files: coverage/lcov.info | ||
name: ubuntu-latest-node-${{ matrix.node }} | ||
name: unit | ||
|
||
upload-coverage: | ||
name: Upload coverage | ||
needs: test | ||
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
node: | ||
- 18 | ||
- 20 | ||
name: Test Node ${{ matrix.node }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Upload to coveralls | ||
uses: coverallsapp/github-action@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
parallel-finished: true | ||
carryforward: "linux-node-18,linux-node-20,linux-node-21" | ||
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 tests/integration | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: coverage/lcov.info | ||
name: integration/${{ matrix.os }}/node-${{ matrix.node }} |
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
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
*.md | ||
.git* | ||
test/ | ||
examples/ | ||
src/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
semi: false | ||
singleQuote: true | ||
trailingComma: none |
Oops, something went wrong.