Skip to content

Commit

Permalink
Merge pull request #34 from boesing/feature/codeception
Browse files Browse the repository at this point in the history
Codeception checks
  • Loading branch information
weierophinney committed Aug 11, 2021
2 parents c41509b + 84b4cf5 commit b35f569
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Currently, it identifies the following:
- Psalm checks based on the presence of `psalm.xml.dist` or `psalm.xml` files.
- phpbench benchmarks based on the presence of a `phpbench.json`.
- Markdown documentation based on the presence of a `mkdocs.yml` and/or markdown files in the `doc/book/` or `doc/books/` trees.
- Codeception checks based on the presence of `codeception.yml.dist` or `codeception.yml` files.

Further, when triggered by a `pull_request` event, it determines what checks are necessary based on which files were affected.

Expand Down
11 changes: 11 additions & 0 deletions src/create-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,17 @@ function checks (config) {
return createQaJobs('markdownlint docs/book/**/*.md', config);
}
),
new Check(
config.code_checks,
[fileTest('codeception.yml.dist'), fileTest('codeception.yml')],
/**
* @param {Config} config
* @return {Array}
*/
function (config) {
return createQaJobs('vendor/bin/codecept run', config);
}
)
];
}

Expand Down

0 comments on commit b35f569

Please sign in to comment.