feat: include testing, factories, git workflow for testing.
All checks were successful
Tests / Laravel tests (pull_request) Successful in 3m31s
All checks were successful
Tests / Laravel tests (pull_request) Successful in 3m31s
This commit is contained in:
34
.gitea/workflows/tests.yml
Normal file
34
.gitea/workflows/tests.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
php-tests:
|
||||
name: Laravel tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
extensions: bcmath, exif, fileinfo, gd, mbstring, pdo_sqlite, sqlite3, zip
|
||||
coverage: none
|
||||
|
||||
- name: Install Composer dependencies
|
||||
uses: ramsey/composer-install@v3
|
||||
|
||||
- name: Prepare application
|
||||
run: |
|
||||
cp .env.example .env
|
||||
php artisan key:generate --ansi
|
||||
|
||||
- name: Run test suite
|
||||
run: php artisan test
|
||||
Reference in New Issue
Block a user