Skip to content

Commit a6cdfa3

Browse files
authored
Improve CI (#38)
1 parent 49190f9 commit a6cdfa3

File tree

7 files changed

+196
-97
lines changed

7 files changed

+196
-97
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 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:
@@ -18,10 +19,16 @@ on: # Build any PRs and main branch changes
1819
schedule:
1920
- cron: '0 0 1 * *' # Every month
2021

22+
permissions:
23+
contents: read
24+
2125
concurrency:
2226
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2327
cancel-in-progress: true
2428

29+
env:
30+
TEST_OUTPUT_STYLE: pretty
31+
2532
jobs:
2633
tests:
2734
name: Tests

.github/workflows/coverage-upload.yml

Lines changed: 5 additions & 1 deletion
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:
812
upload:
9-
name: Upload
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: 5 additions & 1 deletion
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
@@ -29,7 +33,7 @@ jobs:
2933
uses: ./.github/workflows/reusable-CI-workflow.yml
3034

3135
upload:
32-
name: Upload
36+
name: Coverage
3337
needs: [tests]
3438
permissions:
3539
contents: read

0 commit comments

Comments
 (0)