CI test workflow: run npm install --workspaces 💚 #59
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
name: test | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['16'] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup Node v${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install --workspaces | |
- run: npm run lint | |
- 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 |