CI: Add node-hid requirements to all jobs.
This commit is contained in:
parent
1c499c9f42
commit
e8a9eea493
63
.github/workflows/nodejs.yml
vendored
63
.github/workflows/nodejs.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [8.x, 10.x, 12.x, 13.x ]
|
node-version: [ 8.x, 10.x, 12.x, 13.x ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
@ -22,14 +22,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install node-hid requirements
|
- name: Install node-hid requirements
|
||||||
run: sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev libudev-dev
|
run: sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev libudev-dev
|
||||||
|
|
||||||
- run: npm ci
|
- name: Install dependencies (and link per package)
|
||||||
- run: npm run build-all
|
run: npm ci
|
||||||
- run: npm run test-node
|
|
||||||
|
- name: Build CommonJS and ESM (from TypeScript)
|
||||||
|
run: npm run build-all
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm run test-node
|
||||||
|
|
||||||
|
|
||||||
test-browser:
|
test-browser:
|
||||||
@ -46,12 +52,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- run: npm ci
|
- name: Install node-hid requirements
|
||||||
- run: npm run build-all
|
run: sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev libudev-dev
|
||||||
- run: npm run test-browser-${{ matrix.module }}
|
|
||||||
|
|
||||||
|
- name: Install dependencies (and link per package)
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build CommonJS and ESM (from TypeScript)
|
||||||
|
run: npm run build-all
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm run test-browser-${{ matrix.module }}
|
||||||
|
|
||||||
test-react-native:
|
test-react-native:
|
||||||
|
|
||||||
@ -69,11 +83,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- run: npm ci
|
- name: Install dependencies (and link per package)
|
||||||
- run: npm run build-all
|
run: npm ci
|
||||||
- run: npm run test-react
|
|
||||||
|
- name: Build CommonJS and ESM (from TypeScript)
|
||||||
|
run: npm run build-all
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm run test-react
|
||||||
|
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
@ -89,11 +109,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- run: npm ci
|
- name: Install node-hid requirements
|
||||||
- run: npm run build-all
|
run: sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev libudev-dev
|
||||||
- run: npm run test-coverage
|
|
||||||
|
- name: Install dependencies (and link per package)
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build CommonJS and ESM (from TypeScript)
|
||||||
|
run: npm run build-all
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm run test-coverage
|
||||||
|
|
||||||
- name: Upload coverage summary
|
- name: Upload coverage summary
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user