-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (76 loc) · 2.58 KB
/
main-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Main Tests
# https://github.com/shivammathur/setup-php
on:
push:
branches-ignore: [ rc**]
pull_request:
branches-ignore: [ master ]
env:
extensions: :opcache, fileinfo #intl, pcov #fileinfo is needed for Windows
jobs:
# tests:
# name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
# runs-on: ${{ matrix.operating-system }}
# strategy:
# fail-fast: false
# matrix:
# operating-system: [ubuntu-latest]
# php-versions: ['7.2', '7.4', '8.1', '8.3']
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Install PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php-versions }}
# extensions: ${{ env.extensions }} #optional
# tools: phpcs, phpcbf, phpmd, phpstan:1.4
# ini-values: "post_max_size=256M" #optional
# coverage: none
# - name: Cache dependencies
# uses: actions/cache@v3
# with:
# path: /home/runner/.cache/composer/files
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
# restore-keys: ${{ runner.os }}-composer-
# - name: Install dependencies
# run: |
# chmod -R +x tools/*
# tools/composer install --prefer-dist --no-progress
# - name: Install Global Parallel-Lint
# run: tools/composer global require php-parallel-lint/php-parallel-lint
# - name: Install Global Phpcpd for Php7.1
# if: ${{ '7.1' == matrix.php-versions }}
# run: cp tools/php71/phpcpd /usr/local/bin/phpcpd
# - name: Testing the Aplication
# run: |
# echo -e "\e[42m\e[30m**** Main Test Suite ****\033[0m"
# vendor/bin/phpunit --order-by random
# echo -e "\e[42m\e[30m**** GitfilesTest ****\033[0m"
# vendor/bin/phpunit --group git
# shell: bash
tests_windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
php-versions: ['7.1', '8.1']
name: Windows Tests - PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }} #optional
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Testing the Aplication
run: |
ls
ls tools
php vendor\bin\phpunit --version
php vendor\bin\phpunit --group windows