From 4ac751daaf95834e5cdce76950b31cca5b8ba0db Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 21 Dec 2023 18:13:19 +0100 Subject: [PATCH] drop! debug CI --- .github/workflows/test.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1bebf06..81b18ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - run: apt install -y jq - run: npm install - run: npm run build @@ -31,8 +32,16 @@ jobs: - run: npm test - name: test-install ffmpeg-static as dependency run: | - file=$(npm pack -s) && file=$(realpath $file) - cd $(mktemp -d) && npm init -y - npm i "$file" - file $(node -p 'require("ffmpeg-static")') - $(node -p 'require("ffmpeg-static")') --help + set -x + for file in $(npm pack -s --workspaces | xargs); do + file="$(realpath $file)" + + pushd . + cd "$(mktemp -d)" + npm init -y + npm i "$file" + pkg="$(jq -r .name package.json)" + file "$(node -p "require('$pkg')")" + "$(node -p "require('$pkg')")" -L + popd + done