|
4 | 4 | - master |
5 | 5 | pull_request: |
6 | 6 | name: Qa workflow |
| 7 | +env: |
| 8 | + phiveGPGKeys: 4AA394086372C20A,D2CCAC42F6295E7D,E82B2FB314E9906E,8A03EA3B385DBAA1 |
7 | 9 | jobs: |
8 | 10 | setup: |
9 | 11 | runs-on: ubuntu-latest |
10 | 12 | steps: |
11 | 13 | - uses: actions/checkout@v2 |
12 | 14 |
|
13 | | - - name: Restore/cache tools folder |
14 | | - uses: actions/cache@v2 |
15 | | - with: |
16 | | - path: tools |
17 | | - key: all-tools-${{ github.sha }} |
18 | | - restore-keys: | |
19 | | - all-tools-${{ github.sha }}- |
20 | | - all-tools- |
21 | | -
|
22 | 15 | - name: composer |
23 | 16 | uses: docker://composer |
24 | 17 | env: |
|
33 | 26 | with: |
34 | 27 | args: check --config-file ./composer-require-config.json composer.json |
35 | 28 |
|
36 | | - - name: Install phive |
37 | | - run: make install-phive |
38 | | - |
39 | | - - name: Install PHAR dependencies |
40 | | - run: tools/phive.phar --no-progress install --copy --trust-gpg-keys 4AA394086372C20A,D2CCAC42F6295E7D,E82B2FB314E9906E,8E730BA25823D8B5,8A03EA3B385DBAA1 --force-accept-unsigned |
41 | | - |
42 | 29 | phpunit-with-coverage: |
43 | 30 | runs-on: ubuntu-latest |
44 | 31 | name: Unit tests |
@@ -102,15 +89,12 @@ jobs: |
102 | 89 | php-version: ${{ matrix.php-versions }} |
103 | 90 | extensions: ${{ env.extensions }} |
104 | 91 | ini-values: memory_limit=2G, display_errors=On, error_reporting=-1 |
| 92 | + tools: phive |
105 | 93 |
|
106 | | - - name: Restore/cache tools folder |
107 | | - uses: actions/cache@v2 |
108 | | - with: |
109 | | - path: tools |
110 | | - key: all-tools-${{ github.sha }} |
111 | | - restore-keys: | |
112 | | - all-tools-${{ github.sha }}- |
113 | | - all-tools- |
| 94 | + - name: Install PHAR dependencies |
| 95 | + env: |
| 96 | + GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 97 | + run: phive --no-progress install --copy --trust-gpg-keys ${{ env.phiveGPGKeys }} --force-accept-unsigned |
114 | 98 |
|
115 | 99 | - name: Get composer cache directory |
116 | 100 | id: composer-cache |
@@ -204,7 +188,7 @@ jobs: |
204 | 188 | uses: shivammathur/setup-php@v2 |
205 | 189 | with: |
206 | 190 | php-version: ${{ matrix.php-versions }} |
207 | | - extension: ${{ env.extensions }} |
| 191 | + extensions: ${{ env.extensions }} |
208 | 192 | tools: psalm |
209 | 193 | ini-values: memory_limit=2G, display_errors=On, error_reporting=-1 |
210 | 194 |
|
|
0 commit comments