We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d63fa6 commit efedb90Copy full SHA for efedb90
.github/workflows/phpunit.yml
@@ -3,6 +3,8 @@ on: push
3
jobs:
4
phpunit:
5
runs-on: ubuntu-latest
6
+ env:
7
+ IS_CI_TEST: true
8
steps:
9
- uses: actions/checkout@v1
10
- uses: shivammathur/setup-php@v2
tests/CodeRepository/GitCodeRepositoryTest.php
@@ -39,6 +39,10 @@ private function createGitRepo(): void
39
$gitPath = self::LOCAL_GIT_PATH;
40
$fs->mkdir($gitPath);
41
$fs->dumpFile($gitPath . '/composer.json', '{}');
42
+ if (getenv('IS_CI_TEST')) {
43
+ `git config --global user.email "you@example.com"`;
44
+ `git config --global user.name "Your Name"`;
45
+ }
46
`cd {$gitPath} && git init && git add composer.json && git commit -m "Init"`;
47
}
48
0 commit comments