Files
CVAtron/.github/workflows/tests.yml
Matthias Guillitte 715d2a884a
Some checks failed
linter / quality (push) Successful in 3m36s
tests / ci (push) Failing after 12m6s
Fix CICD
Used pnpm instead of npm
2025-08-17 13:07:17 +02:00

51 lines
993 B
YAML

name: tests
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2
coverage: xdebug
- name: Setup Node
uses: wyvox/action-setup-pnpm@v3
- name: Install Node Dependencies
run: pnpm install
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Copy Environment File
run: cp .env.example .env
- name: Generate Application Key
run: php artisan key:generate
- name: Publish Ziggy Configuration
run: php artisan ziggy:generate
- name: Build Assets
run: npm run build
- name: Tests
run: ./vendor/bin/phpunit