@@ -103,6 +103,47 @@ jobs:
103
103
env :
104
104
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
105
105
COVERALLS_RUN_LOCALLY : ${{ secrets.COVERALLS_RUN_LOCALLY }}
106
+ tests-directly-on-os :
107
+ name : Run tests on PHP ${{ matrix.php }} with ${{ matrix.composer }} dependency preference (${{ matrix.os }})
108
+ strategy :
109
+ fail-fast : false
110
+ matrix :
111
+ os : [ubuntu-latest, windows-latest, macos-latest]
112
+ php : ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
113
+ composer : [lowest, current, highest]
114
+ needs :
115
+ - lint-yaml
116
+ - lint-json
117
+ - composer-install
118
+ - supported-checks-matrix
119
+ - supported-versions-matrix
120
+ runs-on : ubuntu-latest
121
+ container :
122
+ image : ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
123
+ steps :
124
+ - uses : actions/checkout@v1
125
+ - name : Cache composer packages
126
+ uses : actions/cache@v1
127
+ with :
128
+ path : ./vendor/
129
+ key : ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
130
+ - name : Install Dependencies
131
+ run : (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
132
+ if : matrix.composer == 'lowest'
133
+ - name : Install Dependencies
134
+ run : (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o
135
+ if : matrix.composer == 'current'
136
+ - name : Install Dependencies
137
+ run : (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
138
+ if : matrix.composer == 'highest'
139
+ - name : Fetch Tags
140
+ run : git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
141
+ if : matrix.check == 'backward-compatibility-check'
142
+ - run : |
143
+ make unit-testing-raw mutation-testing-raw
144
+ env:
145
+ COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
146
+ COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
106
147
qodana :
107
148
name : Qodana
108
149
runs-on : ubuntu-latest
@@ -169,6 +210,7 @@ jobs:
169
210
- lint-yaml
170
211
- lint-json
171
212
- qa
213
+ - tests-directly-on-os
172
214
- qodana
173
215
runs-on : ubuntu-latest
174
216
steps :
0 commit comments