@@ -132,3 +132,63 @@ jobs:
132132 DB_CONNECTION : sqlite
133133 DB_DATABASE : ' :memory:'
134134 run : composer infect:ci
135+
136+ test-sqlite :
137+ timeout-minutes : 4
138+ runs-on : ${{ matrix.os }}
139+ concurrency :
140+ cancel-in-progress : true
141+ group : test-sqlite-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
142+ strategy :
143+ fail-fast : true
144+ matrix :
145+ os :
146+ - ' ubuntu-latest'
147+ php-version :
148+ - ' 8.2'
149+ - ' 8.3'
150+ dependencies :
151+ - lowest
152+ - locked
153+ - highest
154+ steps :
155+ - name : 📦 Check out the codebase
156+ uses : actions/checkout@v4.1.6
157+
158+ - name : 🛠️ Setup PHP
159+ uses : shivammathur/setup-php@2.30.4
160+ with :
161+ php-version : ${{ matrix.php-version }}
162+ extensions : none, ctype, dom, json, mbstring, simplexml, tokenizer, xml, xmlwriter, pdo, curl, fileinfo, pdo_mysql, pdo_sqlite
163+ ini-values : error_reporting=E_ALL
164+ coverage : none
165+
166+ - name : 🛠️ Setup problem matchers
167+ run : |
168+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
169+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
170+
171+ - name : 🤖 Validate composer.json and composer.lock
172+ run : composer validate --ansi --strict
173+
174+ - name : 🔍 Get composer cache directory
175+ uses : wayofdev/gh-actions/actions/composer/get-cache-directory@v3.1.0
176+
177+ - name : ♻️ Restore cached dependencies installed with composer
178+ uses : actions/cache@v4.0.2
179+ with :
180+ path : ${{ env.COMPOSER_CACHE_DIR }}
181+ key : php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
182+ restore-keys : php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
183+
184+ - name : 🗑️ Remove PHP platform configuration
185+ if : " matrix.dependencies != 'locked'"
186+ run : composer config platform.php --ansi --unset
187+
188+ - name : 📥 Install "${{ matrix.dependencies }}" dependencies
189+ uses : wayofdev/gh-actions/actions/composer/install@v3.1.0
190+ with :
191+ dependencies : ${{ matrix.dependencies }}
192+
193+ - name : 🧪 Run phpunit tests with Pest
194+ run : composer test:sqlite
0 commit comments