{"id":19120950,"url":"https://github.com/php-actions/behat","last_synced_at":"2025-02-22T12:45:39.623Z","repository":{"id":65155643,"uuid":"222171308","full_name":"php-actions/behat","owner":"php-actions","description":"Run Behat tests in Github Actions.","archived":false,"fork":false,"pushed_at":"2022-11-29T21:24:39.000Z","size":32,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T09:33:49.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["g105b"]}},"created_at":"2019-11-16T23:17:17.000Z","updated_at":"2023-04-02T12:56:03.000Z","dependencies_parsed_at":"2023-01-05T05:03:11.832Z","dependency_job_id":null,"html_url":"https://github.com/php-actions/behat","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"af60839cad9afaf812c461df79b182f984090920"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fbehat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fbehat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fbehat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-actions%2Fbehat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-actions","download_url":"https://codeload.github.com/php-actions/behat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240177051,"owners_count":19760308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:15:34.448Z","updated_at":"2025-02-22T12:45:39.602Z","avatar_url":"https://github.com/php-actions.png","language":"Shell","readme":"\u003cimg src=\"http://159.65.210.101/php-actions.png\" align=\"right\" alt=\"PHP Actions for Github\" /\u003e\n\nRun Behat tests in Github Actions.\n==================================\n\nBehat is an open source Behavior Driven Development framework. What’s behavior driven development, you ask? It's a way to develop software through a constant communication with stakeholders in form of examples; examples of how this software should help them, and you, to achieve your goals.\n\n\u003e Given I am on \"https://github.com/php-actions/behat\"\n\u003e\n\u003e When I press \"Star this repository\"\n\u003e\n\u003e Then I should be a stargazer of \"php-actions/behat\"\n\u003e\n\u003e And I should see \"Unstar this repository\"\n\nUsage\n-----\n\nCreate your Github Workflow configuration in `.github/workflows/ci.yml` or similar.\n\n```yml\nname: CI\n\non: [push]\n\njobs:\n  build-test:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v3\n      - uses: php-actions/composer@v3\n      - uses: php-actions/behat@v1\n      # ... then your own project steps ...\n```\n\n### Version numbers\n\nThis action is released with semantic version numbers, but also tagged to the latest major release's tag always points to the latest release within the matching major version.\n\nPlease feel free to use `uses: php-actions/behat@v1` to always run the latest version of v1, or `uses: php-actions/behat@v1.0.1` to specify an exact release.\n\nExample\n-------\n\nWe've put together an extremely simple example application that uses `php-actions/behat`. Check it out here: https://github.com/php-actions/example-behat.\n\nInputs\n------\n\nThe following configuration options are available:\n\n+ `version` What version of Behat to use (default: latest)\n+ `php_version` What version of PHP to use (default: latest)\n+ `php_extensions` Space separated list of extensions to configure with the PHP build\n+ `vendored_behat_path` Path to a vendored behat binary\n+ `config` Configuration file location\n+ `paths` Optional path(s) to exclude\n+ `suite` Only execute a specific suite\n+ `format` How to format tests output (pretty/progress/junit)\n+ `out` Write format output to a file/directory instead of STDOUT\n+ `name` Only executeCall the feature elements which match part of the given name or regex\n+ `tags` Only executeCall the features or scenarios with tags matching tag filter expression\n+ `role` Only executeCall the features with actor role matching a wildcard\n+ `definitions` Print all available step definitions (l to list, i to show extended info, 'needle' to find specific definitions)\n+ `memory_limit` Memory limit for tests\n+ `args` Extra arguments to pass to the behat binary\n\nThe syntax for passing in custom input is the following: \n\n```yml\n...\njobs:\n  behat:\n\n    ...\n\n    - name: Behat tests\n      uses: php-actions/behat@v1\n      with:\n        config: path/to/behat.yml\n        memory_limit: 256M\n```\n\nIf you require other configurations of Behat, please request them in the [GitHub issue tracker][issues].\n\nPHP and Behat versions\n----------------------\n\nIt's possible to run any version of Behaty under any version of PHP, with any PHP extensions you require. This is configured with the following inputs:\n\n+ `version` - the version number of Behat to run, e.g. `3` or `3.11.0` (default: latest)\n+ `php_version` - the version number of PHP to use, e.g. `7.4` (default: latest)\n+ `php_extensions` - a space-separated list of extensions to install using [php-build][php-build], e.g. `xdebug mbstring` (default: N/A)\n\nPlease note the version number specified within your Action configuration must match your `composer.json` major version number. For example, if your composer.json requires `behat/behat 3.11.0`, you must use the version: `3.11.0` input, as major versions of PHPBehat are incompatible with each other.\n\nIf you require a specific version that is not compatible with GitHub Actions for some reason, please make a request in the [GitHub issue tracker][issues].\n\n***\n\nIf you found this repository helpful, please consider [sponsoring the developer][sponsor].\n\n[issues]: https://github.com/php-actions/behat/issues\n[php-build]: https://github.com/php-actions/php-build\n[sponsor]: https://github.com/sponsors/g105b\n","funding_links":["https://github.com/sponsors/g105b"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fbehat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-actions%2Fbehat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-actions%2Fbehat/lists"}