Shared GitHub configuration of the Galette organization.
actions/build-galette: install Galette core with its dependencies and built assetsactions/matrix-generator: PHP and database matrices of the CI jobsactions/release-plugin: build and publish a plugin releaseactions/toot: announce on Mastodon
.github/workflows/plugin-e2e.yml runs the Playwright
specs of a plugin against Galette core: PostgreSQL and Mailpit services, a fresh install,
the plugin database, the E2E fixtures (core ones and the plugin Fixtures class), then the
plugins-chromium project of core playwright.config.ts.
jobs:
e2e:
permissions:
contents: read
uses: galette/.github/.github/workflows/plugin-e2e.yml@main
with:
galette-ref: master| Input | Default | Description |
|---|---|---|
plugin |
repository name | Plugin directory name |
galette-ref |
develop |
Galette core branch or tag to test against |
php-version |
8.5 |
PHP version |
check-url |
Path that must not answer 404 once the server is up |
The calling job sets the token permissions: the workflow runs code of the tested branch and needs nothing more than reading the repository.
What the plugin provides:
- its specs in
tests/e2e/specs/*.spec.ts; Galette fixtures and helpers are imported with the@e2e/alias, seetests/e2e/README.mdin Galette core; - its JavaScript, built by
npm run buildwhenpackage.jsonhas such a script; - optionally a
tests/e2e/setup.sh, run with bash from the plugin directory after the database is installed and before the fixtures are seeded, withGALETTE_PATHset to core.