🎥 Make videos programmatically with React
set versions
Jonny Burger01648609afda
diff --git a/.github/workflows/push.yml b/.github/workflows/push.ymlindex 02c6003527..4bf4baa3b9 100644--- a/.github/workflows/push.yml+++ b/.github/workflows/push.yml@@ -16,11 +16,6 @@ jobs:- uses: actions/setup-node@v3with:node-version: 16- - name: Setup PHP with PHPUnit- uses: shivammathur/setup-php@v2- with:- php-version: "8.2"- tools: phpunit:10.1.3- run: |corepack enable- uses: Iamshankhadeep/[email protected]@@ -104,6 +99,11 @@ jobs:- uses: actions/setup-node@v3with:node-version: ${{ matrix.node_version }}+ - name: Setup PHP with PHPUnit+ uses: shivammathur/setup-php@v2+ with:+ php-version: "8.2"+ tools: phpunit:10.1.3- run: |corepack enable- uses: Iamshankhadeep/[email protected]diff --git a/packages/it-tests/src/monorepo/php-package.test.ts b/packages/it-tests/src/monorepo/php-package.test.tsindex 84bc2cb3b5..c005ab6d20 100644--- a/packages/it-tests/src/monorepo/php-package.test.ts+++ b/packages/it-tests/src/monorepo/php-package.test.ts@@ -4,14 +4,14 @@ import path from "path";import { expect, test } from "vitest";import { LambdaInternals } from "@remotion/lambda";-test("Set the right version for phpunit", () => {- const referenceVersion = readFileSync(- path.join(process.cwd(), "..", "core", "package.json"),- "utf-8"- );+const referenceVersion = readFileSync(+ path.join(process.cwd(), "..", "core", "package.json"),+ "utf-8"+);+const referenceVersionJson = JSON.parse(referenceVersion);+const version = referenceVersionJson.version;- const referenceVersionJson = JSON.parse(referenceVersion);- const version = referenceVersionJson.version;+test("Set the right version for phpunit", () => {expect(typeof version).toBe("string");const VERSION = `<?php \nnamespace Remotion\\LambdaPhp;\n\nconst VERSION = "${version}";`;@@ -21,6 +21,32 @@ test("Set the right version for phpunit", () => {);});+test("Set the right version for composer.json", () => {+ const composerJson = readFileSync(+ path.join(process.cwd(), "..", "lambda-php", "composer.json"),+ "utf-8"+ );+ const composerJsonJson = JSON.parse(composerJson);+ composerJsonJson.version = version;+ writeFileSync(+ path.join(process.cwd(), "..", "lambda-php", "composer.json"),+ JSON.stringify(composerJsonJson, null, 2) + "\n"+ );+});++test("Set the right verison for composer.json in example", () => {+ const composerJson = readFileSync(+ path.join(process.cwd(), "..", "lambda-php-example", "composer.json"),+ "utf-8"+ );+ const composerJsonJson = JSON.parse(composerJson);+ composerJsonJson.require["remotion/lambda-php"] = version;+ writeFileSync(+ path.join(process.cwd(), "..", "lambda-php-example", "composer.json"),+ JSON.stringify(composerJsonJson, null, 2) + "\n"+ );+});+test("PHP package should create the same payload as normal Lambda package", async () => {execSync("php composer.phar install", {cwd: path.join(process.cwd(), "..", "lambda-php"),diff --git a/packages/lambda-php-example/composer.json b/packages/lambda-php-example/composer.jsonindex 7dba47f4a7..9eb1be2026 100644--- a/packages/lambda-php-example/composer.json+++ b/packages/lambda-php-example/composer.json@@ -18,6 +18,6 @@],"require": {"vlucas/phpdotenv": "^5.5",- "remotion/lambda-php": "^1.0"+ "remotion/lambda-php": "3.3.95"}}diff --git a/packages/lambda-php/composer.json b/packages/lambda-php/composer.jsonindex 0b3fbb4ec1..feca1ef121 100644--- a/packages/lambda-php/composer.json+++ b/packages/lambda-php/composer.json@@ -1,7 +1,7 @@{"name": "remotion/lambda-php","type": "library",- "version": "1.0.0",+ "version": "3.3.95","autoload": {"psr-4": {"Remotion\\LambdaPhp\\": "src/"diff --git a/packages/lambda-php/composer.lock b/packages/lambda-php/composer.lockindex 8ae50f9f91..8d6a788f88 100644--- a/packages/lambda-php/composer.lock+++ b/packages/lambda-php/composer.lock@@ -4,7 +4,7 @@"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies","This file is @generated automatically"],- "content-hash": "1be61ab0285ebb890b220eed10652cb1",+ "content-hash": "2046c4a616681225beaf3e940ff74dab","packages": [{"name": "aws/aws-crt-php",@@ -62,16 +62,16 @@},{"name": "aws/aws-sdk-php",- "version": "3.269.9",+ "version": "3.271.0","source": {"type": "git","url": "https://github.com/aws/aws-sdk-php.git",- "reference": "18aec5f307bd95588ff5d1fa970eac5b0075a977"+ "reference": "4812b557b375e2d2c8107730c43dfff90c3cf103"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/18aec5f307bd95588ff5d1fa970eac5b0075a977",- "reference": "18aec5f307bd95588ff5d1fa970eac5b0075a977",+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/4812b557b375e2d2c8107730c43dfff90c3cf103",+ "reference": "4812b557b375e2d2c8107730c43dfff90c3cf103","shasum": ""},"require": {@@ -151,27 +151,27 @@"support": {"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80","issues": "https://github.com/aws/aws-sdk-php/issues",- "source": "https://github.com/aws/aws-sdk-php/tree/3.269.9"+ "source": "https://github.com/aws/aws-sdk-php/tree/3.271.0"},- "time": "2023-05-09T18:20:58+00:00"+ "time": "2023-05-23T19:11:46+00:00"},{"name": "guzzlehttp/guzzle",- "version": "7.5.1",+ "version": "7.7.0","source": {"type": "git","url": "https://github.com/guzzle/guzzle.git",- "reference": "b964ca597e86b752cd994f27293e9fa6b6a95ed9"+ "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b964ca597e86b752cd994f27293e9fa6b6a95ed9",- "reference": "b964ca597e86b752cd994f27293e9fa6b6a95ed9",+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5",+ "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5","shasum": ""},"require": {"ext-json": "*",- "guzzlehttp/promises": "^1.5",+ "guzzlehttp/promises": "^1.5.3 || ^2.0","guzzlehttp/psr7": "^1.9.1 || ^2.4.5","php": "^7.2.5 || ^8.0","psr/http-client": "^1.0",@@ -183,7 +183,8 @@"require-dev": {"bamarni/composer-bin-plugin": "^1.8.1","ext-curl": "*",- "php-http/client-integration-tests": "^3.0",+ "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",+ "php-http/message-factory": "^1.1","phpunit/phpunit": "^8.5.29 || ^9.5.23","psr/log": "^1.1 || ^2.0 || ^3.0"},@@ -197,9 +198,6 @@"bamarni-bin": {"bin-links": true,"forward-command": false- },- "branch-alias": {- "dev-master": "7.5-dev"}},"autoload": {@@ -265,7 +263,7 @@],"support": {"issues": "https://github.com/guzzle/guzzle/issues",- "source": "https://github.com/guzzle/guzzle/tree/7.5.1"+ "source": "https://github.com/guzzle/guzzle/tree/7.7.0"},"funding": [{@@ -281,20 +279,20 @@"type": "tidelift"}],- "time": "2023-04-17T16:30:08+00:00"+ "time": "2023-05-21T14:04:53+00:00"},{"name": "guzzlehttp/promises",- "version": "1.5.2",+ "version": "1.5.3","source": {"type": "git","url": "https://github.com/guzzle/promises.git",- "reference": "b94b2807d85443f9719887892882d0329d1e2598"+ "reference": "67ab6e18aaa14d753cc148911d273f6e6cb6721e"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598",- "reference": "b94b2807d85443f9719887892882d0329d1e2598",+ "url": "https://api.github.com/repos/guzzle/promises/zipball/67ab6e18aaa14d753cc148911d273f6e6cb6721e",+ "reference": "67ab6e18aaa14d753cc148911d273f6e6cb6721e","shasum": ""},"require": {@@ -304,11 +302,6 @@"symfony/phpunit-bridge": "^4.4 || ^5.1"},"type": "library",- "extra": {- "branch-alias": {- "dev-master": "1.5-dev"- }- },"autoload": {"files": ["src/functions_include.php"@@ -349,7 +342,7 @@],"support": {"issues": "https://github.com/guzzle/promises/issues",- "source": "https://github.com/guzzle/promises/tree/1.5.2"+ "source": "https://github.com/guzzle/promises/tree/1.5.3"},"funding": [{@@ -365,7 +358,7 @@"type": "tidelift"}],- "time": "2022-08-28T14:55:35+00:00"+ "time": "2023-05-21T12:31:43+00:00"},{"name": "guzzlehttp/psr7",@@ -961,16 +954,16 @@},{"name": "nikic/php-parser",- "version": "v4.15.4",+ "version": "v4.15.5","source": {"type": "git","url": "https://github.com/nikic/PHP-Parser.git",- "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290"+ "reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290",- "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290",+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/11e2663a5bc9db5d714eedb4277ee300403b4a9e",+ "reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e","shasum": ""},"require": {@@ -1011,9 +1004,9 @@],"support": {"issues": "https://github.com/nikic/PHP-Parser/issues",- "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4"+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.5"},- "time": "2023-03-05T19:49:14+00:00"+ "time": "2023-05-19T20:20:00+00:00"},{"name": "phar-io/manifest",@@ -1128,16 +1121,16 @@},{"name": "phpunit/php-code-coverage",- "version": "10.1.1",+ "version": "10.1.2","source": {"type": "git","url": "https://github.com/sebastianbergmann/php-code-coverage.git",- "reference": "884a0da7f9f46f28b2cb69134217fd810b793974"+ "reference": "db1497ec8dd382e82c962f7abbe0320e4882ee4e"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/884a0da7f9f46f28b2cb69134217fd810b793974",- "reference": "884a0da7f9f46f28b2cb69134217fd810b793974",+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/db1497ec8dd382e82c962f7abbe0320e4882ee4e",+ "reference": "db1497ec8dd382e82c962f7abbe0320e4882ee4e","shasum": ""},"require": {@@ -1194,7 +1187,7 @@"support": {"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues","security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.1"+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.2"},"funding": [{@@ -1202,7 +1195,7 @@"type": "github"}],- "time": "2023-04-17T12:15:40+00:00"+ "time": "2023-05-22T09:04:27+00:00"},{"name": "phpunit/php-file-iterator",@@ -1448,16 +1441,16 @@},{"name": "phpunit/phpunit",- "version": "10.1.2",+ "version": "10.1.3","source": {"type": "git","url": "https://github.com/sebastianbergmann/phpunit.git",- "reference": "6f0cd95be71add539f8fd2be25b2a4a29789000b"+ "reference": "2379ebafc1737e71cdc84f402acb6b7f04198b9d"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6f0cd95be71add539f8fd2be25b2a4a29789000b",- "reference": "6f0cd95be71add539f8fd2be25b2a4a29789000b",+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2379ebafc1737e71cdc84f402acb6b7f04198b9d",+ "reference": "2379ebafc1737e71cdc84f402acb6b7f04198b9d","shasum": ""},"require": {@@ -1529,7 +1522,7 @@"support": {"issues": "https://github.com/sebastianbergmann/phpunit/issues","security": "https://github.com/sebastianbergmann/phpunit/security/policy",- "source": "https://github.com/sebastianbergmann/phpunit/tree/10.1.2"+ "source": "https://github.com/sebastianbergmann/phpunit/tree/10.1.3"},"funding": [{@@ -1545,7 +1538,7 @@"type": "tidelift"}],- "time": "2023-04-22T07:38:19+00:00"+ "time": "2023-05-11T05:16:22+00:00"},{"name": "sebastian/cli-parser",