Home Puth

CI/CD

I recommend running Puth via Docker/Podman inside your CI/CD environment. If you've installed the npm package, you should cache the $(pwd)/.cache/puppeteer directory and the npm .cache.

Failed tests

The puth/laravel packages detects if it's running inside a CI/CD environment (by checking the CI env) and if so enables the saving of snapshots of failed tests. Snapshots are saved to /puth/storage/snapshots when using the docker image otherwise with npm it will save them to $(pwd)/.storage/snapshots

Add the snapshots directory to your artifacts and you're done.