Skip to content

Commit 0337a91

Browse files
authored
Bugfix/Workflow file format. (#12)
1 parent 07690d1 commit 0337a91

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: Test
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [ 'main' ]
76
pull_request:
8-
types: [ opened, synchronize, reopened ]
7+
types: [ 'opened', 'synchronize', 'reopened' ]
98

109
jobs:
1110
test:
1211
runs-on: ubuntu-latest
12+
1313
strategy:
1414
matrix:
15-
php-version: [ 8.0, 8.1 ]
15+
php-version: [ '8.0', '8.1 ']
1616

1717
steps:
1818
- name: Checkout source code
@@ -37,8 +37,9 @@ jobs:
3737
- name: Validate composer.json and composer.lock
3838
run: composer validate
3939

40-
- name: Install Dependencies
41-
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
40+
- name: Install dependencies
41+
if: steps.composer-cache.outputs.cache-hit != 'true'
42+
run: composer install --prefer-dist --no-progress --no-suggest
4243

4344
- name: Execute Static Code analysis
4445
run: composer analyse

0 commit comments

Comments
 (0)