Skip to content
galettePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.github

Shared GitHub configuration of the Galette organization.

Composite actions

Reusable workflows

Plugin E2E tests

.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, see tests/e2e/README.md in Galette core;
  • its JavaScript, built by npm run build when package.json has 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, with GALETTE_PATH set to core.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages