|
1 | 1 | name: run-tests
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - schedule: |
6 |
| - - cron: '0 0 * * 0' |
| 4 | + push: |
| 5 | + schedule: |
| 6 | + - cron: '0 0 * * 0' |
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - vlucas-phpdotenv: |
10 |
| - |
11 |
| - name: PHP ${{ matrix.php }} - vlucas/phpdotenv ${{ matrix.vlucas-phpdotenv }} - ${{ matrix.os }} - ${{ matrix.dependency-prefer }} |
12 |
| - |
13 |
| - runs-on: ${{ matrix.os }} |
14 |
| - |
15 |
| - strategy: |
16 |
| - fail-fast: false |
17 |
| - matrix: |
18 |
| - os: [ubuntu-latest] |
19 |
| - php: [7.4, 7.3, 7.2, 7.1, '7.0'] |
20 |
| - vlucas-phpdotenv: [^5.0, ^4.0, ^3.0, ^2.0, ^1.0] |
21 |
| - dependency-prefer: [prefer-stable, prefer-lowest] |
22 |
| - include: |
23 |
| - - php: 7.4 |
24 |
| - phpunit: ^9.0 |
25 |
| - - php: 7.3 |
26 |
| - phpunit: ^9.0 |
27 |
| - - php: 7.2 |
28 |
| - phpunit: ^8.0 |
29 |
| - - php: 7.1 |
30 |
| - phpunit: ^7.0 |
31 |
| - - php: '7.0' |
32 |
| - phpunit: ^6.0 |
33 |
| - exclude: |
34 |
| - - vlucas-phpdotenv: ^5.0 |
35 |
| - php: '7.0' |
36 |
| - |
37 |
| - steps: |
38 |
| - - name: Checkout code |
39 |
| - uses: actions/checkout@v2 |
40 |
| - |
41 |
| - - name: Setup PHP |
42 |
| - uses: shivammathur/setup-php@v2 |
43 |
| - with: |
44 |
| - php-version: ${{ matrix.php }} |
45 |
| - extensions: mbstring |
46 |
| - coverage: none |
47 |
| - |
48 |
| - # find out composer's cache directory on the current os - for the "Cache composer dependencies" step below |
49 |
| - - name: Determine composer's cache directory |
50 |
| - id: composer-cache |
51 |
| - run: | |
52 |
| - echo "::set-output name=dir::$(composer config cache-files-dir)" |
53 |
| -
|
54 |
| - - name: Cache dependencies (composer) |
55 |
| - uses: actions/cache@v1 |
56 |
| - with: |
57 |
| - path: ${{ steps.composer-cache.outputs.dir }} |
58 |
| - key: php-${{ matrix.php }}-vlucas-phpdotenv-${{ matrix.vlucas-phpdotenv }}-os-${{ matrix.os }}-dependency-prefer-${{ matrix.dependency-prefer }}-composer-${{ hashFiles('composer.json') }} |
59 |
| - |
60 |
| - - name: Install dependencies (composer) |
61 |
| - run: | |
62 |
| - composer require "vlucas/phpdotenv:${{ matrix.vlucas-phpdotenv }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update |
63 |
| - composer update --${{ matrix.dependency-prefer }} --prefer-dist --no-interaction --no-suggest |
64 |
| -
|
65 |
| - - name: Execute tests |
66 |
| - run: vendor/bin/phpunit |
67 |
| - |
68 |
| - symfony-dotenv: |
69 |
| - |
70 |
| - name: PHP ${{ matrix.php }} - symfony/dotenv ${{ matrix.symfony-dotenv }} - ${{ matrix.os }} - ${{ matrix.dependency-prefer }} |
71 |
| - |
72 |
| - runs-on: ${{ matrix.os }} |
73 |
| - |
74 |
| - strategy: |
75 |
| - fail-fast: false |
76 |
| - matrix: |
77 |
| - os: [ubuntu-latest] |
78 |
| - php: [7.4, 7.3, 7.2, 7.1, '7.0'] |
79 |
| - symfony-dotenv: [^5.0, ^4.0, ^3.3] |
80 |
| - dependency-prefer: [prefer-stable, prefer-lowest] |
81 |
| - include: |
82 |
| - - php: 7.4 |
83 |
| - phpunit: ^9.0 |
84 |
| - - php: 7.3 |
85 |
| - phpunit: ^9.0 |
86 |
| - - php: 7.2 |
87 |
| - phpunit: ^8.0 |
88 |
| - - php: 7.1 |
89 |
| - phpunit: ^7.0 |
90 |
| - - php: '7.0' |
91 |
| - phpunit: ^6.0 |
92 |
| - exclude: |
93 |
| - - symfony-dotenv: ^5.0 |
94 |
| - php: '7.0' |
95 |
| - - symfony-dotenv: ^4.0 |
96 |
| - php: '7.0' |
97 |
| - - symfony-dotenv: ^5.0 |
98 |
| - php: '7.1' |
99 |
| - |
100 |
| - steps: |
101 |
| - - name: Checkout code |
102 |
| - uses: actions/checkout@v2 |
103 |
| - |
104 |
| - - name: Setup PHP |
105 |
| - uses: shivammathur/setup-php@v2 |
106 |
| - with: |
107 |
| - php-version: ${{ matrix.php }} |
108 |
| - extensions: mbstring |
109 |
| - coverage: none |
110 |
| - |
111 |
| - # find out composer's cache directory on the current os - for the "Cache composer dependencies" step below |
112 |
| - - name: Determine composer's cache directory |
113 |
| - id: composer-cache |
114 |
| - run: | |
115 |
| - echo "::set-output name=dir::$(composer config cache-files-dir)" |
116 |
| -
|
117 |
| - - name: Cache dependencies (composer) |
118 |
| - uses: actions/cache@v1 |
119 |
| - with: |
120 |
| - path: ${{ steps.composer-cache.outputs.dir }} |
121 |
| - key: php-${{ matrix.php }}-symfony-dotenv-${{ matrix.symfony-dotenv }}-os-${{ matrix.os }}-dependency-prefer-${{ matrix.dependency-prefer }}-composer-${{ hashFiles('composer.json') }} |
122 |
| - |
123 |
| - - name: Install dependencies (composer) |
124 |
| - run: | |
125 |
| - composer require "symfony/dotenv:${{ matrix.symfony-dotenv }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update |
126 |
| - composer update --${{ matrix.dependency-prefer }} --prefer-dist --no-interaction --no-suggest |
127 |
| -
|
128 |
| - - name: Execute tests |
129 |
| - run: vendor/bin/phpunit |
| 9 | + vlucas-phpdotenv: |
| 10 | + |
| 11 | + name: PHP ${{ matrix.php }} - vlucas/phpdotenv ${{ matrix.vlucas-phpdotenv }} - ${{ matrix.os }} - ${{ matrix.dependency-prefer }} |
| 12 | + |
| 13 | + runs-on: ${{ matrix.os }} |
| 14 | + |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + os: [ubuntu-latest] |
| 19 | + php: ['8.0', 7.4, 7.3, 7.2, 7.1, '7.0'] |
| 20 | + vlucas-phpdotenv: [^5.0, ^4.0, ^3.0, ^2.0, ^1.0] |
| 21 | + dependency-prefer: [prefer-stable, prefer-lowest] |
| 22 | + include: |
| 23 | + - php: '8.0' |
| 24 | + phpunit: ^9.0 |
| 25 | + - php: 7.4 |
| 26 | + phpunit: ^9.0 |
| 27 | + - php: 7.3 |
| 28 | + phpunit: ^9.0 |
| 29 | + - php: 7.2 |
| 30 | + phpunit: ^8.0 |
| 31 | + - php: 7.1 |
| 32 | + phpunit: ^7.0 |
| 33 | + - php: '7.0' |
| 34 | + phpunit: ^6.0 |
| 35 | + exclude: |
| 36 | + - vlucas-phpdotenv: ^5.0 |
| 37 | + php: '7.0' |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: Checkout code |
| 41 | + uses: actions/checkout@v2 |
| 42 | + |
| 43 | + - name: Setup PHP |
| 44 | + uses: shivammathur/setup-php@v2 |
| 45 | + with: |
| 46 | + php-version: ${{ matrix.php }} |
| 47 | + extensions: mbstring |
| 48 | + coverage: none |
| 49 | + |
| 50 | + # find out composer's cache directory on the current os - for the "Cache composer dependencies" step below |
| 51 | + - name: Determine composer's cache directory |
| 52 | + id: composer-cache |
| 53 | + run: | |
| 54 | + echo "::set-output name=dir::$(composer config cache-files-dir)" |
| 55 | +
|
| 56 | + - name: Cache dependencies (composer) |
| 57 | + uses: actions/cache@v1 |
| 58 | + with: |
| 59 | + path: ${{ steps.composer-cache.outputs.dir }} |
| 60 | + key: php-${{ matrix.php }}-vlucas-phpdotenv-${{ matrix.vlucas-phpdotenv }}-os-${{ matrix.os }}-dependency-prefer-${{ matrix.dependency-prefer }}-composer-${{ hashFiles('composer.json') }} |
| 61 | + |
| 62 | + - name: Install dependencies (composer) |
| 63 | + run: | |
| 64 | + composer require "vlucas/phpdotenv:${{ matrix.vlucas-phpdotenv }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update |
| 65 | + composer update --${{ matrix.dependency-prefer }} --prefer-dist --no-interaction --no-suggest |
| 66 | +
|
| 67 | + - name: Execute tests |
| 68 | + run: vendor/bin/phpunit |
| 69 | + |
| 70 | + symfony-dotenv: |
| 71 | + |
| 72 | + name: PHP ${{ matrix.php }} - symfony/dotenv ${{ matrix.symfony-dotenv }} - ${{ matrix.os }} - ${{ matrix.dependency-prefer }} |
| 73 | + |
| 74 | + runs-on: ${{ matrix.os }} |
| 75 | + |
| 76 | + strategy: |
| 77 | + fail-fast: false |
| 78 | + matrix: |
| 79 | + os: [ubuntu-latest] |
| 80 | + php: ['8.0', 7.4, 7.3, 7.2, 7.1, '7.0'] |
| 81 | + symfony-dotenv: [^5.0, ^4.0, ^3.3] |
| 82 | + dependency-prefer: [prefer-stable, prefer-lowest] |
| 83 | + include: |
| 84 | + - php: '8.0' |
| 85 | + phpunit: ^9.0 |
| 86 | + - php: 7.4 |
| 87 | + phpunit: ^9.0 |
| 88 | + - php: 7.3 |
| 89 | + phpunit: ^9.0 |
| 90 | + - php: 7.2 |
| 91 | + phpunit: ^8.0 |
| 92 | + - php: 7.1 |
| 93 | + phpunit: ^7.0 |
| 94 | + - php: '7.0' |
| 95 | + phpunit: ^6.0 |
| 96 | + exclude: |
| 97 | + - symfony-dotenv: ^5.0 |
| 98 | + php: '7.0' |
| 99 | + - symfony-dotenv: ^4.0 |
| 100 | + php: '7.0' |
| 101 | + - symfony-dotenv: ^5.0 |
| 102 | + php: '7.1' |
| 103 | + |
| 104 | + steps: |
| 105 | + - name: Checkout code |
| 106 | + uses: actions/checkout@v2 |
| 107 | + |
| 108 | + - name: Setup PHP |
| 109 | + uses: shivammathur/setup-php@v2 |
| 110 | + with: |
| 111 | + php-version: ${{ matrix.php }} |
| 112 | + extensions: mbstring |
| 113 | + coverage: none |
| 114 | + |
| 115 | + # find out composer's cache directory on the current os - for the "Cache composer dependencies" step below |
| 116 | + - name: Determine composer's cache directory |
| 117 | + id: composer-cache |
| 118 | + run: | |
| 119 | + echo "::set-output name=dir::$(composer config cache-files-dir)" |
| 120 | +
|
| 121 | + - name: Cache dependencies (composer) |
| 122 | + uses: actions/cache@v1 |
| 123 | + with: |
| 124 | + path: ${{ steps.composer-cache.outputs.dir }} |
| 125 | + key: php-${{ matrix.php }}-symfony-dotenv-${{ matrix.symfony-dotenv }}-os-${{ matrix.os }}-dependency-prefer-${{ matrix.dependency-prefer }}-composer-${{ hashFiles('composer.json') }} |
| 126 | + |
| 127 | + - name: Install dependencies (composer) |
| 128 | + run: | |
| 129 | + composer require "symfony/dotenv:${{ matrix.symfony-dotenv }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update |
| 130 | + composer update --${{ matrix.dependency-prefer }} --prefer-dist --no-interaction --no-suggest |
| 131 | +
|
| 132 | + - name: Execute tests |
| 133 | + run: vendor/bin/phpunit |
0 commit comments