-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.98 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: Tests
on:
push:
branches: [ 2.x, 3.x ]
pull_request:
branches: [ 2.x, 3.x ]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: '8.1'
extensions: mbstring, dom, fileinfo
coverage: xdebug #optional
- uses: getong/[email protected]
with:
host port: 3308 # Optional, default value is 3306. The port of host
#container port: 3307 # Optional, default value is 3306. The port of container
#character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
#collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
mariadb version: '10.3' # Optional, default value is "latest". The version of the MariaDB
mysql database: 'testbench' # Optional, default value is "test". The specified database which will be create
mysql user: 'default' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
mysql password: 'secret' # Required if "mysql user" exists. The password for the "mysql user"
- name: Redis Server in GitHub Actions
uses: supercharge/[email protected]
with:
# Redis version to use
redis-version: 5 # optional, default is latest
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: afe50b57038790ac97669452ea4967d142354893104f32a33fdc54de112dc1d1
COMPOSER_ROOT_VERSION: dev-develop
with:
coverageCommand: vendor/bin/pest --coverage --ci
debug: false