Skip to content

Commit 0cf891f

Browse files
authored
Merge pull request #740 from wayofdev/feat/infra-dx
2 parents e3c5d00 + 8039105 commit 0cf891f

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

.github/workflows/testing.yml

+60
Original file line numberDiff line numberDiff line change
@@ -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/[email protected]
157+
158+
- name: 🛠️ Setup PHP
159+
uses: shivammathur/[email protected]
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/[email protected]
176+
177+
- name: ♻️ Restore cached dependencies installed with composer
178+
uses: actions/[email protected]
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/[email protected]
190+
with:
191+
dependencies: ${{ matrix.dependencies }}
192+
193+
- name: 🧪 Run phpunit tests with Pest
194+
run: composer test:sqlite

renovate.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
"packageRules": [
1515
{
1616
"updateTypes": ["minor", "patch"],
17-
"automerge": true
17+
"automerge": true,
18+
"labels": ["type: deps"]
19+
},
20+
{
21+
"paths": ["docs/**"],
22+
"commitMessagePrefix": "chore",
23+
"commitMessageAction": "update",
24+
"commitMessageTopic": "docs dependencies",
25+
"labels": ["type: docs", "type: deps"]
1826
}
1927
]
2028
}

0 commit comments

Comments
 (0)