Skip to content

Commit b41e088

Browse files
authored
Refactor GitHub workflows and update dependencies (#37)
The commit introduces several major changes to improve the project's workflow and update dependencies. It removes the 'tweet' workflow and extracts the 'mutation testing' job into a separate workflow file named 'infection.yml'. Moreover, the dependencies in both the root and library 'composer.json' files have been updated, enabling compatibility with more recent versions.
1 parent 0ec9f45 commit b41e088

File tree

5 files changed

+39
-56
lines changed

5 files changed

+39
-56
lines changed

.github/workflows/infection.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2+
3+
name: "Integrate"
4+
5+
on:
6+
push:
7+
branches:
8+
- "*.x"
9+
10+
jobs:
11+
mutation_testing:
12+
name: "5️⃣ Mutation Testing"
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
- name: "Set up PHP"
16+
uses: "shivammathur/setup-php@v2"
17+
with:
18+
php-version: "8.2"
19+
extensions: "ctype, curl, dom, json, libxml, mbstring, openssl, phar, simplexml, sodium, tokenizer, xml, xmlwriter, zlib"
20+
coverage: "xdebug"
21+
22+
- name: "Checkout code"
23+
uses: "actions/checkout@v4"
24+
25+
- name: "Fetch Git base reference"
26+
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"
27+
28+
- name: "Install dependencies"
29+
uses: "ramsey/composer-install@v2"
30+
with:
31+
dependency-versions: "highest"
32+
composer-options: "--optimize-autoloader"
33+
34+
- name: "Execute Infection"
35+
run: "make ci-mu"

.github/workflows/integrate.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -157,35 +157,6 @@ jobs:
157157
run: |
158158
vendor/bin/deptrac analyse --fail-on-uncovered --no-cache
159159
160-
mutation_testing:
161-
name: "5️⃣ Mutation Testing"
162-
needs:
163-
- "byte_level"
164-
- "syntax_errors"
165-
runs-on: "ubuntu-latest"
166-
steps:
167-
- name: "Set up PHP"
168-
uses: "shivammathur/setup-php@v2"
169-
with:
170-
php-version: "8.2"
171-
extensions: "ctype, curl, dom, json, libxml, mbstring, openssl, phar, simplexml, sodium, tokenizer, xml, xmlwriter, zlib"
172-
coverage: "xdebug"
173-
174-
- name: "Checkout code"
175-
uses: "actions/checkout@v4"
176-
177-
- name: "Fetch Git base reference"
178-
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"
179-
180-
- name: "Install dependencies"
181-
uses: "ramsey/composer-install@v2"
182-
with:
183-
dependency-versions: "highest"
184-
composer-options: "--optimize-autoloader"
185-
186-
- name: "Execute Infection"
187-
run: "make ci-mu"
188-
189160
rector_checkstyle:
190161
name: "6️⃣ Rector Checkstyle"
191162
needs:

.github/workflows/tweet.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"symfony/http-kernel": "^6.2|^7.0"
2424
},
2525
"require-dev": {
26-
"doctrine/dbal": "^3.0",
26+
"doctrine/dbal": "^3.0|^4.0",
2727
"doctrine/doctrine-bundle": "^2.0",
2828
"doctrine/doctrine-fixtures-bundle": "^3.4",
29-
"doctrine/orm": "^2.6",
29+
"doctrine/orm": "^2.6|^3.0",
3030
"ekino/phpstan-banned-code": "^1.0",
31-
"infection/infection": "^0.27",
31+
"infection/infection": "^0.28",
3232
"lcobucci/jwt": "^4.3|^5.0",
3333
"matthiasnoback/symfony-config-test": "^4.2|^5.0",
3434
"matthiasnoback/symfony-dependency-injection-test": "^4.2|^5.0",

src/library/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"psr/cache": "^1.0|^2.0|^3.0",
2222
"psr/clock": "^1.0",
2323
"psr/log": "^1.1|^2.0|^3.0",
24-
"symfony/http-kernel": "^6.2"
24+
"symfony/http-kernel": "^6.2|^7.0"
2525
},
2626
"autoload": {
2727
"psr-4" : {

0 commit comments

Comments
 (0)