Skip to content

Commit 33d94bb

Browse files
committed
github: use central CI workflows
Use GitHub workflow_call feature to reduce workflow duplication. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
1 parent 8924af0 commit 33d94bb

File tree

2 files changed

+9
-40
lines changed

2 files changed

+9
-40
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
1+
# Copyright 2025, Proofcraft Pty Ltd
22
#
33
# SPDX-License-Identifier: BSD-2-Clause
44

55
# Actions to run on pull requests
66

77
name: PR
88

9-
on: [pull_request]
9+
on: [pull_request, workflow_dispatch]
1010

1111
jobs:
12-
gitlint:
13-
name: Gitlint
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: seL4/ci-actions/gitlint@master
17-
18-
whitespace:
19-
name: 'Trailing Whitespace'
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: seL4/ci-actions/git-diff-check@master
23-
24-
shell:
25-
name: 'Portable Shell'
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: seL4/ci-actions/bashisms@master
12+
pr-checks:
13+
name: Checks
14+
uses: seL4/ci-actions/.github/workflows/pr.yml@master

.github/workflows/push.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,9 @@ on:
1010
branches:
1111
- master
1212
pull_request:
13+
workflow_dispatch:
1314

1415
jobs:
15-
check:
16-
name: License Check
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: seL4/ci-actions/license-check@master
20-
21-
links:
22-
name: Links
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: seL4/ci-actions/link-check@master
26-
with:
27-
exclude: js/node_modules
28-
29-
style:
30-
name: Style
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: seL4/ci-actions/style@master
34-
with:
35-
diff_only: true
16+
checks:
17+
name: Checks
18+
uses: seL4/ci-actions/.github/workflows/push.yml@master

0 commit comments

Comments
 (0)