Skip to content

Commit 0e8a6f7

Browse files
committed
bug #128 Use dummy token in test to make sure we run functional (Nyholm)
This PR was squashed before being merged into the master branch. Discussion ---------- Use dummy token in test to make sure we run functional The calls to github is abstracted away Commits ------- f046396 Use dummy token in test to make sure we run functional
2 parents 958d127 + f046396 commit 0e8a6f7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.env.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ SYMFONY_DOCS_SECRET=''
77
SYMFONY_SECRET=''
88

99
BOT_USERNAME='carsonbot-test'
10+
GITHUB_TOKEN=CHANGE_ME

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ jobs:
4343
composer install --no-interaction --optimize-autoloader
4444
./vendor/bin/simple-phpunit install
4545
46-
- name: Run tests
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.CARSONTEST_GITHUB_TOKEN }}
46+
- name: Setup database
4947
run: |
50-
if [ ! -z $GITHUB_TOKEN ]; then
51-
./vendor/bin/simple-phpunit --testsuite Functional
52-
fi
53-
./vendor/bin/simple-phpunit --testsuite Unit
48+
bin/console doctrine:database:create
49+
bin/console doctrine:schema:create
50+
51+
- name: Run tests
52+
run: ./vendor/bin/simple-phpunit

config/packages/lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
framework:
2-
lock: '%env(DATABASE_URL)%'
2+
lock: '%env(resolve:DATABASE_URL)%'

0 commit comments

Comments
 (0)