Skip to content

Commit b35f569

Browse files
Merge pull request #34 from boesing/feature/codeception
Codeception checks
2 parents c41509b + 84b4cf5 commit b35f569

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Currently, it identifies the following:
1212
- Psalm checks based on the presence of `psalm.xml.dist` or `psalm.xml` files.
1313
- phpbench benchmarks based on the presence of a `phpbench.json`.
1414
- Markdown documentation based on the presence of a `mkdocs.yml` and/or markdown files in the `doc/book/` or `doc/books/` trees.
15+
- Codeception checks based on the presence of `codeception.yml.dist` or `codeception.yml` files.
1516

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

src/create-jobs.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@ function checks (config) {
190190
return createQaJobs('markdownlint docs/book/**/*.md', config);
191191
}
192192
),
193+
new Check(
194+
config.code_checks,
195+
[fileTest('codeception.yml.dist'), fileTest('codeception.yml')],
196+
/**
197+
* @param {Config} config
198+
* @return {Array}
199+
*/
200+
function (config) {
201+
return createQaJobs('vendor/bin/codecept run', config);
202+
}
203+
)
193204
];
194205
}
195206

0 commit comments

Comments
 (0)