🎥 Make videos programmatically with React
try parallel testing
Jonny Burger895596bfcc20
diff --git a/.github/workflows/push.yml b/.github/workflows/push.ymlindex 567e749d39..246dd5f480 100644--- a/.github/workflows/push.yml+++ b/.github/workflows/push.yml@@ -1,6 +1,35 @@on: [push, pull_request]name: Install and Testjobs:+ lambda-tests:+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'remotion-dev/remotion'+ runs-on: ubuntu-latest+ name: Lambda integration+ steps:+ - uses: actions/checkout@main+ - uses: actions/setup-node@v2+ with:+ node-version: ${{ matrix.node_version }}+ - uses: Iamshankhadeep/[email protected]+ with:+ token: ${{ secrets.GITHUB_TOKEN }}+ version: ${{ matrix.versionffmpeg_version }}++ - name: Cache .pnpm-store+ uses: actions/cache@v1+ with:+ path: ~/.pnpm-store+ key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}++ - name: Install pnpm+ run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6+ shell: bash++ - name: Install+ run: pnpm install --frozen-lockfile++ - name: Test+ run: npx jest --root-dir lambda-testsbuild:if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'remotion-dev/remotion'name: Build Node ${{ matrix.node_version }} - ffmpeg ${{ matrix.ffmpeg_version }} on ${{ matrix.os }}diff --git a/package.json b/package.jsonindex c45e27a240..7a222cd859 100644--- a/package.json+++ b/package.json@@ -3,7 +3,7 @@"private": true,"license": "SEE LICENSE IN LICENSE.md","scripts": {- "test": "cd packages/core && npm test && cd ../babel-loader && npm test && cd ../bundler && npm test && cd ../cli && npm test && cd ../eslint-plugin && npm test && cd ../gif && npm test && cd ../lambda && npm test && cd ../media-utils && npm test && cd ../player && npm test && cd ../renderer && npm test && cd ../three && npm test && cd ../.. && npx jest --runInBand",+ "test": "cd packages/core && npm test && cd ../babel-loader && npm test && cd ../bundler && npm test && cd ../cli && npm test && cd ../eslint-plugin && npm test && cd ../gif && npm test && cd ../lambda && npm test && cd ../media-utils && npm test && cd ../player && npm test && cd ../renderer && npm test && cd ../three && npm test && cd ../.. && npx jest --runInBand --root-dir=tests/integration","build": "pnpm run build --recursive && lerna bootstrap","watch": "pnpm run watch --recursive --stream --parallel","postinstall": "lerna bootstrap",diff --git a/packages/example/out.mp4 b/packages/example/out.mp4deleted file mode 100644index 98f35745c0..0000000000Binary files a/packages/example/out.mp4 and /dev/null differdiff --git a/tests/frame-accuracy.test.ts b/tests/integration/frame-accuracy.test.tssimilarity index 97%rename from tests/frame-accuracy.test.tsrename to tests/integration/frame-accuracy.test.tsindex acc4a552d1..defb9ccba9 100644--- a/tests/frame-accuracy.test.ts+++ b/tests/integration/frame-accuracy.test.ts@@ -3,7 +3,7 @@ import fs from "fs";import os from "os";import path from "path";import sharp from "sharp";-import { selectColor } from "../packages/example/src/Framer";+import { selectColor } from "../../packages/example/src/Framer";const getMissedFramesforCodec = async (codec: "mp4" | "webm") => {const outputPath = await fs.promises.mkdtemp(diff --git a/tests/rendering.test.ts b/tests/integration/rendering.test.tssimilarity index 100%rename from tests/rendering.test.tsrename to tests/integration/rendering.test.tsdiff --git a/tests/lambda-browser-bundle.test.ts b/tests/lambda/lambda-browser-bundle.test.tssimilarity index 100%rename from tests/lambda-browser-bundle.test.tsrename to tests/lambda/lambda-browser-bundle.test.tsdiff --git a/tests/lambda-integration.test.ts b/tests/lambda/lambda-integration.test.tssimilarity index 100%rename from tests/lambda-integration.test.tsrename to tests/lambda/lambda-integration.test.ts