Work in progress. Needs further testing. #5
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
on: push | |
name: CI | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: kirschbaumdevelopment/laravel-test-runner:8.3 | |
services: | |
mysql: | |
image: mysql:8.3 | |
env: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: test | |
ports: | |
- 33306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Get nova setup for installation | |
run: | | |
composer config "http-basic.nova.laravel.com" "[email protected]" "G4JBFED9GlVIoHiAd4KpEouhZR32oOANpoKkqEaNZP3ThkZ5BL" | |
- name: Install composer dependencies | |
run: | | |
composer install --no-scripts | |
- name: Prepare Venture | |
run: | | |
cp .env.ci .env | |
php artisan key:generate | |
- name: Install front-end dependencies | |
run: | | |
npm install | |
npm run dev | |
- name: Run Testsuite | |
run: vendor/bin/pest tests/ | |
# - name: Deploy to Laravel Forge | |
# run: curl ${{ secrets.FORGE_DEPLOYMENT_WEBHOOK }} |