|
7 | 7 | - cron: '0 0 * * *'
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - linux_tests: |
| 10 | + tests: |
11 | 11 |
|
12 |
| - runs-on: ubuntu-latest |
13 |
| - services: |
14 |
| - mysql: |
15 |
| - image: mysql:5.7 |
16 |
| - env: |
17 |
| - MYSQL_ALLOW_EMPTY_PASSWORD: yes |
18 |
| - MYSQL_DATABASE: forge |
19 |
| - ports: |
20 |
| - - 33306:3306 |
21 |
| - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 |
22 |
| - redis: |
23 |
| - image: redis:5.0 |
24 |
| - ports: |
25 |
| - - 6379:6379 |
26 |
| - options: --entrypoint redis-server |
| 12 | + runs-on: ubuntu-18.04 |
27 | 13 | strategy:
|
28 | 14 | fail-fast: true
|
29 | 15 | matrix:
|
30 |
| - php: [7.3, 7.4] |
31 |
| - stability: [prefer-lowest, prefer-stable] |
32 |
| - |
33 |
| - name: PHP ${{ matrix.php }} - ${{ matrix.stability }} |
34 |
| - |
35 |
| - steps: |
36 |
| - - name: Checkout code |
37 |
| - uses: actions/checkout@v2 |
38 |
| - |
39 |
| - - name: Setup PHP |
40 |
| - uses: shivammathur/setup-php@v2 |
41 |
| - with: |
42 |
| - php-version: ${{ matrix.php }} |
43 |
| - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd |
44 |
| - tools: composer:v2 |
45 |
| - coverage: none |
46 |
| - |
47 |
| - - name: Setup Memcached |
48 |
| - uses: niden/actions-memcached@v7 |
49 |
| - |
50 |
| - - name: Install dependencies |
51 |
| - run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress |
52 |
| - |
53 |
| - - name: Execute tests |
54 |
| - run: vendor/bin/phpunit --verbose |
55 |
| - env: |
56 |
| - DB_PORT: ${{ job.services.mysql.ports[3306] }} |
57 |
| - DB_USERNAME: root |
58 |
| - |
59 |
| - windows_tests: |
60 |
| - |
61 |
| - runs-on: windows-latest |
62 |
| - strategy: |
63 |
| - fail-fast: true |
64 |
| - matrix: |
65 |
| - php: [7.3, 7.4] |
66 |
| - include: |
| 16 | + php: [7.3, 7.4, 8.0, 8.1] |
| 17 | + laravel: [6.0, 7.0, 8.0, 9.0] |
| 18 | + exclude: |
67 | 19 | - php: 7.3
|
68 |
| - stability: prefer-lowest |
| 20 | + laravel: 9 |
69 | 21 | - php: 7.4
|
70 |
| - stability: prefer-stable |
| 22 | + laravel: 9 |
71 | 23 |
|
72 |
| - name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows |
| 24 | + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} |
73 | 25 |
|
74 | 26 | steps:
|
75 |
| - - name: Set git to use LF |
76 |
| - run: | |
77 |
| - git config --global core.autocrlf false |
78 |
| - git config --global core.eol lf |
79 | 27 | - name: Checkout code
|
80 | 28 | uses: actions/checkout@v2
|
81 | 29 |
|
82 | 30 | - name: Setup PHP
|
83 | 31 | uses: shivammathur/setup-php@v2
|
84 | 32 | with:
|
85 | 33 | php-version: ${{ matrix.php }}
|
86 |
| - extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp |
| 34 | + extensions: dom, curl, libxml, mbstring, zip |
87 | 35 | tools: composer:v2
|
88 | 36 | coverage: none
|
89 |
| - ini-values: memory_limit=512M |
90 | 37 |
|
91 | 38 | - name: Install dependencies
|
92 |
| - run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress |
| 39 | + run: composer update --prefer-dist --no-interaction --no-progress |
93 | 40 |
|
94 | 41 | - name: Execute tests
|
95 | 42 | run: vendor/bin/phpunit --verbose
|
0 commit comments