kopia lustrzana https://github.com/pixelfed/pixelfed
Update laravel.yml
rodzic
8b7b257c42
commit
8cc2481596
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||
|
|
@ -44,13 +44,13 @@ jobs:
|
|||
- name: Copy .env.testing
|
||||
run: |
|
||||
cp .env.testing .env
|
||||
php artisan key:generate --env=testing
|
||||
php artisan key:generate
|
||||
|
||||
- name: Configure SQLite for testing
|
||||
run: |
|
||||
mkdir -p database
|
||||
touch database/database.sqlite
|
||||
echo "DB_CONNECTION=sqlite" >> .env.testing
|
||||
echo "DB_CONNECTION=sqlite" >> .env
|
||||
|
||||
- name: Clear caches
|
||||
run: |
|
||||
|
|
@ -61,6 +61,9 @@ jobs:
|
|||
- name: Run database migrations
|
||||
run: php artisan migrate --env=testing --force
|
||||
|
||||
- name: Create test output directory
|
||||
run: mkdir -p tests/_output
|
||||
|
||||
- name: Run tests with PHPUnit
|
||||
run: vendor/bin/phpunit --log-junit tests/_output/junit.xml
|
||||
env:
|
||||
|
|
@ -68,7 +71,7 @@ jobs:
|
|||
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: test-results
|
||||
path: tests/_output/junit.xml
|
||||
|
|
@ -76,7 +79,7 @@ jobs:
|
|||
|
||||
- name: Upload Laravel logs
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: laravel-logs
|
||||
path: storage/logs
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue