Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ on: # Build any PRs and main branch changes
# In case of updates to those workflows, they must be pre-checked by `pre-check-CI-updates.yml` rather than this workflow !
# Any updates on those workflows are expected to be restricted to those workflows only ! (no update on code for instance)
- '.github/workflows/pre-check-CI-updates.yml'
- '.github/workflows/CI.yml'
- '.github/workflows/coverage-upload.yml'
- '.github/workflows/reusable-CI-workflow.yml'
- '.github/workflows/reusable-coverage-upload-workflow.yml'
push:
branches: [ master ]
schedule:
- cron: '0 0 1 * *' # Every month

permissions:
contents: read

concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true

env:
TEST_OUTPUT_STYLE: pretty

jobs:
tests:
name: Tests
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/coverage-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
workflows: ["CI"]
types: [completed]

permissions:
contents: read
checks: write # For the check run creation !

jobs:
upload:
name: Upload
name: Coverage
permissions:
contents: read
checks: write # For the check run creation !
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pre-check-CI-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ on:
branches: [master] # Only for PR targeting master branch
paths: # /!\ Duplicate the same list as `on.pull_request.paths-ignore` property value for CI workflow !
- '.github/workflows/pre-check-CI-updates.yml' # This workflow
- '.github/workflows/CI.yml'
- '.github/workflows/coverage-upload.yml'
- '.github/workflows/reusable-CI-workflow.yml'
- '.github/workflows/reusable-coverage-upload-workflow.yml'

permissions:
contents: read
checks: write # For the check run creation !

concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
Expand All @@ -29,7 +31,7 @@ jobs:
uses: ./.github/workflows/reusable-CI-workflow.yml

upload:
name: Upload
name: Coverage
needs: [tests]
permissions:
contents: read
Expand Down
Loading