Skip to content

Commit 84633e4

Browse files
committed
Improve CI
1 parent 6581c3c commit 84633e4

File tree

7 files changed

+202
-102
lines changed

7 files changed

+202
-102
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: 'CI'
2+
23
on: # Build any PRs and main branch changes
34
workflow_dispatch: # Allows to run the workflow manually from the Actions tab
45
pull_request:
@@ -9,19 +10,23 @@ on: # Build any PRs and main branch changes
910
# In case of updates to those workflows, they must be pre-checked by `pre-check-CI-updates.yml` rather than this workflow !
1011
# Any updates on those workflows are expected to be restricted to those workflows only ! (no update on code for instance)
1112
- '.github/workflows/pre-check-CI-updates.yml'
12-
- '.github/workflows/CI.yml'
13-
- '.github/workflows/coverage-upload.yml'
1413
- '.github/workflows/reusable-CI-workflow.yml'
1514
- '.github/workflows/reusable-coverage-upload-workflow.yml'
1615
push:
1716
branches: [ master ]
1817
schedule:
1918
- cron: '0 0 1 * *' # Every month
2019

20+
permissions:
21+
contents: read
22+
2123
concurrency:
2224
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2325
cancel-in-progress: true
2426

27+
env:
28+
TEST_OUTPUT_STYLE: pretty
29+
2530
jobs:
2631
tests:
2732
name: Tests

.github/workflows/coverage-upload.yml

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

7+
permissions:
8+
contents: read
9+
checks: write # For the check run creation !
10+
711
jobs:
8-
upload:
9-
name: Upload
12+
coverage:
13+
name: Coverage
1014
permissions:
1115
contents: read
1216
checks: write # For the check run creation !

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ on:
1212
branches: [master] # Only for PR targeting master branch
1313
paths: # /!\ Duplicate the same list as `on.pull_request.paths-ignore` property value for CI workflow !
1414
- '.github/workflows/pre-check-CI-updates.yml' # This workflow
15-
- '.github/workflows/CI.yml'
16-
- '.github/workflows/coverage-upload.yml'
1715
- '.github/workflows/reusable-CI-workflow.yml'
1816
- '.github/workflows/reusable-coverage-upload-workflow.yml'
1917

18+
permissions:
19+
contents: read
20+
checks: write # For the check run creation !
21+
2022
concurrency:
2123
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2224
cancel-in-progress: true
@@ -28,8 +30,8 @@ jobs:
2830
contents: read
2931
uses: ./.github/workflows/reusable-CI-workflow.yml
3032

31-
upload:
32-
name: Upload
33+
coverage:
34+
name: Coverage
3335
needs: [tests]
3436
permissions:
3537
contents: read

0 commit comments

Comments
 (0)