Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LKyz24 authored Nov 29, 2024
1 parent ac66782 commit 17d4e1f
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,38 @@ on:
push:
branches:
- main
- feature/*
pull_request: # Spustí sa pri vytvorení pull requestu.
- feature/*
pull_request:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2.12'
- name: Install dependencies
run: composer install
- name: Create SQLite database file
run: |
touch database/database.sqlite
- name: Run tests # Spustí testy cez Laravel Artisan.
run: php artisan test
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2.12'

- name: Install dependencies
run: composer install

- name: Create SQLite database file
run: |
touch database/database.sqlite
- name: Set application key
run: |
php artisan key:generate
- name: Run migrations
run: php artisan migrate --env=testing

- name: Run tests
run: php artisan test

- name: Clear cache
run: php artisan config:clear && php artisan cache:clear

0 comments on commit 17d4e1f

Please sign in to comment.