Skip to content

Commit 8a21496

Browse files
authored
Improve CI + Fix behat coverage (#37)
1 parent bb0f5dc commit 8a21496

File tree

7 files changed

+195
-99
lines changed

7 files changed

+195
-99
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ on: # Build any PRs and main branch changes
1919
schedule:
2020
- cron: '0 0 1 * *' # Every month
2121

22+
permissions:
23+
contents: read
24+
2225
concurrency:
2326
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2427
cancel-in-progress: true
2528

29+
env:
30+
TEST_OUTPUT_STYLE: pretty
31+
2632
jobs:
2733
tests:
2834
name: Tests

.github/workflows/coverage-upload.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
workflows: ["CI"]
55
types: [completed]
66

7+
permissions:
8+
contents: read
9+
checks: write # For the check run creation !
10+
711
jobs:
812
upload:
913
name: Upload

.github/workflows/pre-check-CI-updates.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
- '.github/workflows/reusable-CI-workflow.yml'
1818
- '.github/workflows/reusable-coverage-upload-workflow.yml'
1919

20+
permissions:
21+
contents: read
22+
checks: write # For the check run creation !
23+
2024
concurrency:
2125
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2226
cancel-in-progress: true

.github/workflows/reusable-CI-workflow.yml

Lines changed: 170 additions & 96 deletions
Large diffs are not rendered by default.

.github/workflows/reusable-coverage-upload-workflow.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
CODECOV_TOKEN:
99
required: true
1010

11+
permissions:
12+
contents: read
13+
checks: write # For the check run creation !
14+
1115
jobs:
1216
fetch-info:
1317
name: Fetch triggering workflow metadata
@@ -17,12 +21,12 @@ jobs:
1721
checks: write # For the check run creation !
1822
steps:
1923
- name: 'Check run ○'
20-
uses: yoanm/temp-reports-group-workspace/gha-attach-check-run-to-triggering-workflow@v0
24+
uses: yoanm/temp-reports-group-workspace/utils/attach-check-run-to-triggering-workflow@v0
2125
with:
2226
name: 'Fetch coverage info'
2327
fails-on-triggering-workflow-failure: true
2428

25-
- uses: yoanm/temp-reports-group-workspace/gha-fetch-workflow-metadata@v0
29+
- uses: yoanm/temp-reports-group-workspace/utils/fetch-workflow-metadata@v0
2630
id: fetch-workflow-metadata
2731

2832
outputs:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"php": {"min": "8.0", "max": "8.2", "next": "8.3"},
3+
"symfony": {"min": "4.4", "max": "6.0", "next": "6.3"}
4+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"require-dev": {
4040
"ext-json": "*",
41-
"behat/behat": "^3.9.0",
41+
"behat/behat": "^3.9.0,<=3.16.1",
4242
"dvdoug/behat-code-coverage": "^5.0",
4343
"matthiasnoback/symfony-config-test": "^4.0",
4444
"matthiasnoback/symfony-dependency-injection-test": "^4.0",

0 commit comments

Comments
 (0)