Skip to content

Commit

Permalink
Fix Unit Test GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Jan 6, 2024
1 parent 4895350 commit 7fb46bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
env:
MONGODB_CONNECTION: "mongodb://mongodb/test"
S3_CONNECTION: "s3://aaa:12345678@us-east-1/mybucket?create=true&endpoint=http://s3:4566"
DYNAMODB_CONNECTION: "dynamodb://access_key:secret_key@us-east-1/tablename?endpoint=http://dynamodb:8000"
DYNAMODB_CONNECTION: "dynamodb://aaa:123456@us-east-1/tablename?endpoint=http://dynamodb:8000"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .run/Test Project.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="Test Project" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<CommandLine>
<envs>
<env name="DYNAMODB_CONNECTION" value="dynamodb://access_key:secret_key@us-east-1/tablename?endpoint=http://127.0.0.1:8000" />
<env name="DYNAMODB_CONNECTION" value="dynamodb://aaa:123456@us-east-1/tablename?endpoint=http://127.0.0.1:8000" />
<env name="MONGODB_CONNECTION" value="mongodb://127.0.0.1/test" />
<env name="S3_CONNECTION" value="s3://aaa:12345678@us-east-1/mybucket?create=true&amp;endpoint=http://localhost:4566" />
</envs>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Check implementation examples on [https://opensource.byjg.com/php/anydataset-nos
Just type:

```bash
composer require "byjg/anydataset-nosql=^4.9"
composer require "byjg/anydataset-nosql"
```

## Running Unit tests
Expand All @@ -69,13 +69,13 @@ Set the environment variable:

Set the environment variable:

- DYNAMODB_CONNECTION = "dynamodb://access_key:secret_key@region/tablename"
- DYNAMODB_CONNECTION = "dynamodb://accesskey:secretkey@region/tablename"

### Setup AWS S3 for the unit test

Set the environment variable:

- S3_CONNECTION = "s3://access_key:secret_key@region/bucketname"
- S3_CONNECTION = "s3://accesskey:secretkey@region/bucketname"


### Cloudflare KV
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": ">=5.6.0",
"php": ">=7.4",
"ext-curl": "*",
"aws/aws-sdk-php": "3.*",
"byjg/anydataset": "4.9.*",
Expand All @@ -23,7 +23,7 @@
},
"suggest": {
"ext-mongodb": "*",
"byjg/cache-engine": "4.0.*"
"byjg/cache-engine": "4.9.*"
},
"license": "MIT"
}

0 comments on commit 7fb46bc

Please sign in to comment.