Skip to content

Commit

Permalink
Add Create env file step to CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
3m1n3nc3 committed Sep 3, 2024
1 parent 566a70e commit 128ebf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Running Composer Tests
name: Run Tests

on:
push:
Expand Down Expand Up @@ -40,6 +40,13 @@ jobs:
- name: List Installed Dependencies
run: composer show -D

- name: 'Create env file'
run: |
touch .env
echo CUTTLY_API_KEY=${{ secrets.CUTTLY_API_KEY }} >> .env
echo CUTTLY_TEAM_API_KEY=${{ secrets.CUTTLY_TEAM_API_KEY }} >> .env
cat .env
- name: Execute tests
run: ./vendor/bin/pest --coverage --ci
env:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"require-dev": {
"pestphp/pest": "^2.35",
"symfony/var-dumper": "^7.1",
"symfony/var-dumper": "^6.4|^7.1",
"imanghafoori/php-imports-analyzer": "^1.0",
"phpstan/phpstan": "^1.12"
},
Expand Down

0 comments on commit 128ebf6

Please sign in to comment.