mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -07:00
Merge pull request #545 from HaveAGitGat/auto_build_test4
Add auto compile tsc
This commit is contained in:
commit
839d32bc76
3 changed files with 32 additions and 3 deletions
28
.github/workflows/lint_and_test.yml
vendored
28
.github/workflows/lint_and_test.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
||||||
branches: ['**']
|
branches: ['**']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [18.x]
|
node-version: [18.x]
|
||||||
|
|
@ -33,3 +33,29 @@ jobs:
|
||||||
- run: npm run checkPlugins
|
- run: npm run checkPlugins
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm run test
|
- run: npm run test
|
||||||
|
|
||||||
|
auto_compile_and_push:
|
||||||
|
if: github.ref != 'refs/heads/master'
|
||||||
|
needs: [
|
||||||
|
test
|
||||||
|
]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '18.x'
|
||||||
|
|
||||||
|
- run: npm i && npm i -g typescript && rm -rdf ./FlowPlugins && tsc
|
||||||
|
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
with:
|
||||||
|
commit_message: Apply auto-build changes
|
||||||
|
|
@ -27,6 +27,7 @@ var details = function () { return ({
|
||||||
'eac3',
|
'eac3',
|
||||||
'dca',
|
'dca',
|
||||||
'flac',
|
'flac',
|
||||||
|
'libopus',
|
||||||
'mp2',
|
'mp2',
|
||||||
'libmp3lame',
|
'libmp3lame',
|
||||||
'truehd',
|
'truehd',
|
||||||
|
|
@ -148,6 +149,9 @@ var plugin = function (args) {
|
||||||
if (audioEncoder === 'libmp3lame') {
|
if (audioEncoder === 'libmp3lame') {
|
||||||
audioCodec = 'mp3';
|
audioCodec = 'mp3';
|
||||||
}
|
}
|
||||||
|
if (audioEncoder === 'libopus') {
|
||||||
|
audioCodec = 'opus';
|
||||||
|
}
|
||||||
var addedOrExists = attemptMakeStream({
|
var addedOrExists = attemptMakeStream({
|
||||||
args: args,
|
args: args,
|
||||||
langTag: langTag,
|
langTag: langTag,
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,7 @@ var details = function () { return ({
|
||||||
'mpeg2video',
|
'mpeg2video',
|
||||||
'mjpeg',
|
'mjpeg',
|
||||||
'flv',
|
'flv',
|
||||||
'mpeg4',
|
'theora',
|
||||||
'theora'
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
tooltip: 'Specify the codec check for',
|
tooltip: 'Specify the codec check for',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue