Add tests to CI
This commit is contained in:
parent
a8ace43eff
commit
52dcde8f31
22
.github/workflows/CI.yml
vendored
22
.github/workflows/CI.yml
vendored
@ -26,11 +26,29 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-cache-v1-
|
build-cache-v1-
|
||||||
- name: Build ffmpeg-core
|
- name: Build ffmpeg-core
|
||||||
run: make ci
|
run: make ci ci-mt
|
||||||
- name: Upload core and core-mt
|
- name: Upload core and core-mt
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cores
|
name: ffmpeg-cores
|
||||||
path: |
|
path: |
|
||||||
packages/core/dist/*
|
packages/core/dist/*
|
||||||
packages/core-mt/dist/*
|
packages/core-mt/dist/*
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-core
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Download ffmpeg-cores
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ffmpeg-cores
|
||||||
|
- name: Use Node.js 16
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npx lerna@5.4.3 bootstrap
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
||||||
|
Loading…
Reference in New Issue
Block a user