diff --git a/.env.example b/.env.example index 769e33b..0758a88 100644 --- a/.env.example +++ b/.env.example @@ -6,4 +6,4 @@ CI_CLOUD_TASKS_PROJECT_ID= CI_CLOUD_TASKS_QUEUE= CI_CLOUD_TASKS_LOCATION= CI_CLOUD_TASKS_SERVICE_ACCOUNT_EMAIL= -CI_SERVICE_ACCOUNT_JSON_KEY_PATH= +CI_SERVICE_ACCOUNT_JSON_KEY_PATH=./tests/Support/gcloud-key-valid.json diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e3c8dc0..c18b643 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -91,6 +91,7 @@ jobs: env: CI_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.CI_SERVICE_ACCOUNT_JSON_KEY }} run: | + touch .env MYSQL_PORT=3307 POSTGRES_PORT=5432 docker compose up ${{ matrix.db }} -d - name: Install dependencies run: | diff --git a/README.md b/README.md index 8d4f979..b2b8b27 100644 --- a/README.md +++ b/README.md @@ -202,3 +202,13 @@ Read [UPGRADING.MD](UPGRADING.md) on how to update versions. #### HttpRequest.url must start with 'https://' This can happen when your application runs behind a reverse proxy. To fix this, add the application domain to Laravel's [trusted proxies](https://laravel.com/docs/11.x/requests#trusting-all-proxies). You may need to add the wildcard `*` as trusted proxy. + +### Contributing + +You can use the services defined in `docker-compose.yml` to start running the package. + +Inside the container, run `composer install`. + +Set up the environment: `cp .env.example .env` + +Some tests hit the Cloud Tasks API and need a project and key to be able to hit it. See the variables in `.env` \ No newline at end of file