1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:34:03 +00:00
tenancy/INTERNAL.md
Samuel Štancl 7317d2638a
Postgres RLS + permission controlled database managers (#33)
This PR adds Postgres RLS (trait manager + table manager approach) and permission controlled managers for PostgreSQL.

---------

Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-04-24 22:32:49 +02:00

944 B

Internal development notes

Updating the docker image used by the GH action

  1. Login in to Docker Hub: docker login -u archtechx
  2. Shut down containers: composer docker-down
  3. Build the image: DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build --no-cache
  4. Start containers again, using the amd64 image for the test service: composer docker-up
  5. Verify that tests pass on the new image: composer test
  6. Tag a new image: docker tag tenancy-test archtechx/tenancy:latest
  7. Push the image: docker push archtechx/tenancy:latest
  8. Optional: Rebuild the image again locally for arm64: composer docker-rebuild

Debugging GitHub Actions

The ci.yml workflow includes support for act.

To run all tests using act, run composer act. To run only certain tests using act, use composer act-input "FILTER='some test name'" or composer act -- --input "FILTER='some test name'".