Skip to content

Commit aefff91

Browse files
committed
ci: Reintroduce ci.yml workflow as the "must-be-green" CI entry point
1 parent 445a61b commit aefff91

File tree

4 files changed

+59
-32
lines changed

4 files changed

+59
-32
lines changed

.github/workflows/backend.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
name: backend
22

3-
on:
4-
pull_request:
5-
paths:
6-
- '.github/workflows/backend.yml'
7-
- 'skore/**'
8-
push:
9-
branches:
10-
- main
11-
merge_group:
12-
types: [checks_requested]
13-
14-
concurrency:
15-
group: ${{ github.workflow }}-${{ github.ref }}
16-
cancel-in-progress: true
17-
18-
permissions:
19-
contents: read
3+
on: [workflow_call]
204

215
defaults:
226
run:

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
merge_group:
9+
types: [checks_requested]
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
17+
jobs:
18+
changes:
19+
runs-on: ubuntu-latest
20+
outputs:
21+
backend: ${{ steps.filter.outputs.backend }}
22+
permissions:
23+
pull-requests: read
24+
steps:
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
27+
id: filter
28+
with:
29+
filters: |
30+
backend:
31+
- '.github/workflows/backend.yml'
32+
- 'skore/**'
33+
34+
lint:
35+
uses: ./.github/workflows/lint.yml
36+
permissions:
37+
contents: read
38+
39+
backend:
40+
needs: [lint, changes]
41+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || (contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) && needs.changes.outputs.backend == 'true') }}
42+
uses: ./.github/workflows/backend.yml
43+
permissions:
44+
contents: read
45+
46+
ci-all-green:
47+
needs:
48+
- changes
49+
- lint
50+
- backend
51+
if: ${{ always() }}
52+
runs-on: Ubuntu-latest
53+
steps:
54+
- shell: bash
55+
run: |
56+
[[ ${{ contains(needs.*.result, 'failure') }} = false ]]

.github/workflows/lint.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
name: lint
22

3-
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- main
8-
merge_group:
9-
types: [checks_requested]
10-
11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
15-
permissions:
16-
contents: read
3+
on: [workflow_call]
174

185
defaults:
196
run:

.github/workflows/pr-lint-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
pull-requests: read
99

1010
jobs:
11-
lint-title:
11+
pr-lint-title:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)