You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK includes assertions that compare Smart CDN URL signatures and regular request signatures with our reference Node.js implementation. To run these tests:
35
+
36
+
1. Requirements:
37
+
38
+
- Node.js 20+ with npm
39
+
- Ability to execute `npx transloadit smart_sig` (the CLI is downloaded on demand)
40
+
- Ability to execute `npx transloadit sig` (the CLI is downloaded on demand)
41
+
42
+
2. Run the tests:
43
+
44
+
```bash
45
+
export TRANSLOADIT_KEY='your-auth-key'
46
+
export TRANSLOADIT_SECRET='your-auth-secret'
47
+
TEST_NODE_PARITY=1 make test-all
48
+
```
49
+
50
+
If you want to warm the CLI cache ahead of time you can run:
51
+
52
+
```bash
53
+
npx --yes transloadit smart_sig --help
54
+
```
55
+
56
+
For regular request signatures, you can also prime the CLI by running:
57
+
58
+
```bash
59
+
TRANSLOADIT_KEY=... TRANSLOADIT_SECRET=... \
60
+
npx --yes transloadit sig --algorithm sha1 --help
61
+
```
62
+
63
+
CI opts into `TEST_NODE_PARITY=1`, and you can optionally do this locally as well.
64
+
65
+
### Run Tests in Docker
66
+
67
+
Use `scripts/test-in-docker.sh` for a reproducible environment:
68
+
69
+
```bash
70
+
./scripts/test-in-docker.sh
71
+
```
72
+
73
+
This builds the local image, runs `composer install`, and executes `make test-all` (unit + integration tests). Pass a custom command to run something else (composer install still runs first):
Environment variables such as `TEST_NODE_PARITY` or the credentials in `.env` are forwarded, so you can combine parity checks and integration tests with Docker:
80
+
81
+
```bash
82
+
TEST_NODE_PARITY=1 ./scripts/test-in-docker.sh
83
+
```
84
+
85
+
## Releasing a new version
86
+
87
+
To release, say `3.2.0`[Packagist](https://packagist.org/packages/transloadit/php-sdk), follow these steps:
88
+
89
+
1. Make sure `PACKAGIST_TOKEN` is set in your `.env` file
The SDK includes assertions that compare Smart CDN URL signatures and regular request signatures with our reference Node.js implementation. To run these tests:
576
-
577
-
1. Requirements:
578
-
579
-
- Node.js 20+ with npm
580
-
- Ability to execute `npx transloadit smart_sig` (the CLI is downloaded on demand)
581
-
- Ability to execute `npx transloadit sig` (the CLI is downloaded on demand)
582
-
583
-
2. Run the tests:
584
-
585
-
```bash
586
-
exportTRANSLOADIT_KEY='your-auth-key'
587
-
exportTRANSLOADIT_SECRET='your-auth-secret'
588
-
TEST_NODE_PARITY=1 make test-all
589
-
```
590
-
591
-
If you want to warm the CLI cache ahead of time you can run:
592
-
593
-
```bash
594
-
npx --yes transloadit smart_sig --help
595
-
```
596
-
597
-
For regular request signatures, you can also prime the CLI by running:
598
-
599
-
```bash
600
-
TRANSLOADIT_KEY=...TRANSLOADIT_SECRET=... \
601
-
npx --yes transloadit sig --algorithm sha1 --help
602
-
```
603
-
604
-
CI opts into `TEST_NODE_PARITY=1`, and you can optionally do this locally as well.
605
-
606
-
#### Run Tests in Docker
607
-
608
-
Use `scripts/test-in-docker.sh` for a reproducible environment:
609
-
610
-
```bash
611
-
./scripts/test-in-docker.sh
612
-
```
613
-
614
-
This builds the local image, runs `composer install`, and executes `make test-all` (unit + integration tests). Pass a custom command to run something else (composer install still runs first):
Environment variables such as `TEST_NODE_PARITY` or the credentials in `.env` are forwarded, so you can combine parity checks and integration tests with Docker:
621
-
622
-
```bash
623
-
TEST_NODE_PARITY=1 ./scripts/test-in-docker.sh
624
-
```
625
-
626
-
### Releasing a new version
627
-
628
-
To release, say `3.2.0` [Packagist](https://packagist.org/packages/transloadit/php-sdk), follow these steps:
629
-
630
-
1. Make sure `PACKAGIST_TOKEN` is set in your `.env` file
0 commit comments