-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1.03 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Setup PHP and Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, redis, igbinary, msgpack, lzf, zstd, lz4, memcached, gmp, :php-psr
- 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