mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 19:26:27 -07:00
Fix os
This commit is contained in:
parent
ea892dd1c3
commit
8e0a8954b4
2 changed files with 4 additions and 5 deletions
8
.github/workflows/lint_and_test.yml
vendored
8
.github/workflows/lint_and_test.yml
vendored
|
|
@ -6,9 +6,6 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x]
|
node-version: [16.x]
|
||||||
|
|
@ -18,6 +15,7 @@ jobs:
|
||||||
["windows-2019"],
|
["windows-2019"],
|
||||||
["macos-11.0"],
|
["macos-11.0"],
|
||||||
]
|
]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -26,4 +24,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm i
|
- run: npm i
|
||||||
- run: npm run checkPlugins && npm run lint && npm run test
|
- run: npm run checkPlugins
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run test
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
const ratio = parseInt((newSize / oldSize) * 100, 10);
|
const ratio = parseInt((newSize / oldSize) * 100, 10);
|
||||||
|
|
||||||
console.log(newSize, oldSize);
|
|
||||||
const sizeText = `New file has size ${newSize.toFixed(3)} MB which is ${ratio}% `
|
const sizeText = `New file has size ${newSize.toFixed(3)} MB which is ${ratio}% `
|
||||||
+ `of original file size: ${oldSize.toFixed(3)} MB`;
|
+ `of original file size: ${oldSize.toFixed(3)} MB`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue