Skip to content

Commit

Permalink
Fixes to db job.
Browse files Browse the repository at this point in the history
  • Loading branch information
DvDty committed Jan 28, 2024
1 parent c80e0ea commit 98d75de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 39 deletions.
42 changes: 5 additions & 37 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,43 +97,7 @@ jobs:
#
# - name: Run tests
# working-directory: ./application
# run: php artisan test

code-covarage-decrease:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ./application/vendor
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: xdebug

- name: Install Project Dependencies
working-directory: ./application
run: composer install

- name: Framework configuration
working-directory: ./application
run: |
cp .env.example .env
php artisan key:generate
php artisan config:clear
- name: Run coverage
working-directory: ./application
run: php artisan test --coverage
# run: php artisan test --testsuite=Unit

# static-analysis:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -230,6 +194,10 @@ jobs:
working-directory: ./application
run: php artisan test --testsuite=Feature

- name: Get test coverage
working-directory: ./application
run: php artisan test --coverage

- name: Run migrations
working-directory: ./application
run: php artisan migrate:rollback
Expand Down
2 changes: 0 additions & 2 deletions application/tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ public function test_the_application_returns_a_successful_response(): void
$response = $this->get('/');

$response->assertStatus(200);

User::factory()->create();
}
}

0 comments on commit 98d75de

Please sign in to comment.