Skip to content

Commit

Permalink
CI: adapt to workspace repo structure 馃挌
Browse files Browse the repository at this point in the history
follow-up of e5900c5
follow-up of 741474e
  • Loading branch information
derhuerst committed Dec 21, 2023
1 parent 87e0318 commit 5786ca2
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,25 @@ jobs:
- run: npm install --workspaces

- run: npm run lint
- run: npm run build
- run: npm test
- name: test-install ffmpeg-static as dependency

- name: test-install each package in the workspace 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 -u
set -o pipefail
set -x
ls -al packages
for path in packages/*; do
pkg="$(basename "$path")"
tgz="$(realpath $(npm pack -s --workspace "$pkg" | xargs))"
pushd .
cd "$(mktemp -d)"
npm init -y
npm i "$tgz"
file "$(node -p "require('$pkg')")"
"$(node -p "require('$pkg')")" -L
popd
done

0 comments on commit 5786ca2

Please sign in to comment.