show multiple runs #158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# precommit actions for develop branch. | |
name: test | |
on: | |
push: | |
branches: | |
- 'develop' | |
jobs: | |
laravel-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv | |
coverage: none | |
- name: Install dependencies | |
run: composer install -n --prefer-dist | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Create database | |
run: | | |
mkdir -p database | |
touch database/database.sqlite | |
- name: Install more dependencies | |
run: npm install | |
- name: Build vite assets | |
run: npm run build | |
- name: Run tests | |
run: php artisan test |