Skip to content

Composite actions

Composite actions #42

Workflow file for this run

name: Run Tests
on:
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
services:
redis:
image: redis:7.4
ports:
- 6379:6379
mysql:
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_DATABASE: laravel
MYSQL_ALLOW_EMPTY_PASSWORD: yes
env:
PHP_VERSION: '8.3'
CACHE_KEY: extension-cache-v1
PHP_EXTENSIONS: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, redis, igbinary, msgpack, lzf, zstd, lz4, memcached, gmp, :php-psr
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Setup tooling
uses: ./.github/actions/setup-tooling
with:
php-version: '8.3'
- name: Install Project Dependencies
run: composer install -q --no-interaction --no-progress
- name: Copy Environment File
run: cp .env.example .env
- name: Generate Application Key
run: php artisan key:generate
- name: Run Tests
run: php artisan test --compact