41 lines
883 B
YAML
41 lines
883 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- main
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: laravel-runner-php84
|
|
environment: Testing
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node Dependencies
|
|
run: npm i
|
|
|
|
- name: Add Flux Credentials Loaded From ENV
|
|
run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}"
|
|
|
|
- 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: Build Assets
|
|
run: npm run build
|
|
|
|
- name: Run Tests
|
|
run: ./vendor/bin/pest |