@@ -2,12 +2,6 @@ name: CI
22
33on :
44 workflow_call :
5- inputs :
6- checkout_ref :
7- description : Git ref to check out
8- required : false
9- type : string
10- default : " "
115 push :
126 branches : [main]
137 # Run on every pull request regardless of base branch so stacked PRs that
@@ -23,11 +17,10 @@ permissions:
2317
2418jobs :
2519 lint :
26- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
20+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
2721 steps :
2822 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2923 with :
30- ref : ${{ inputs.checkout_ref || github.sha }}
3124 persist-credentials : false
3225
3326 - uses : actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
@@ -43,11 +36,10 @@ jobs:
4336 run : make lint-ci
4437
4538 frontend :
46- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
39+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
4740 steps :
4841 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4942 with :
50- ref : ${{ inputs.checkout_ref || github.sha }}
5143 persist-credentials : false
5244
5345 - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -74,11 +66,10 @@ jobs:
7466 working-directory : frontend
7567
7668 frontend-node-25 :
77- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
69+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
7870 steps :
7971 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8072 with :
81- ref : ${{ inputs.checkout_ref || github.sha }}
8273 persist-credentials : false
8374
8475 - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -94,11 +85,10 @@ jobs:
9485 working-directory : frontend
9586
9687 docs :
97- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
88+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
9889 steps :
9990 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
10091 with :
101- ref : ${{ inputs.checkout_ref || github.sha }}
10292 persist-credentials : false
10393
10494 - uses : actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
@@ -117,11 +107,10 @@ jobs:
117107 run : make docs-check
118108
119109 scripts :
120- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
110+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
121111 steps :
122112 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
123113 with :
124- ref : ${{ inputs.checkout_ref || github.sha }}
125114 persist-credentials : false
126115
127116 - name : Run shell script tests
@@ -134,15 +123,14 @@ jobs:
134123
135124 test :
136125 name : Go Test (${{ matrix.os }})
137- runs-on : ${{ contains(fromJSON('["ubuntu-latest","ubuntu-24.04","ubuntu-22.04"]'), matrix.os) && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || matrix.os }}
126+ runs-on : ${{ contains(fromJSON('["ubuntu-latest","ubuntu-24.04","ubuntu-22.04"]'), matrix.os) && github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || matrix.os }}
138127 strategy :
139128 fail-fast : false
140129 matrix :
141130 os : [ubuntu-latest, windows-latest]
142131 steps :
143132 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
144133 with :
145- ref : ${{ inputs.checkout_ref || github.sha }}
146134 fetch-depth : 0
147135 persist-credentials : false
148136
@@ -196,7 +184,6 @@ jobs:
196184 steps :
197185 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
198186 with :
199- ref : ${{ inputs.checkout_ref || github.sha }}
200187 persist-credentials : false
201188
202189 - name : Prepare placeholder sidecar resource
@@ -227,11 +214,10 @@ jobs:
227214 run : cargo test --locked --manifest-path desktop/src-tauri/Cargo.toml --lib install_downloaded_update
228215
229216 coverage :
230- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
217+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
231218 steps :
232219 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
233220 with :
234- ref : ${{ inputs.checkout_ref || github.sha }}
235221 fetch-depth : 0
236222 persist-credentials : false
237223
@@ -259,7 +245,7 @@ jobs:
259245 run : echo "::warning::Codecov upload failed"
260246
261247 integration :
262- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
248+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
263249 services :
264250 postgres :
265251 image : pgvector/pgvector:pg18
@@ -277,7 +263,6 @@ jobs:
277263 steps :
278264 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
279265 with :
280- ref : ${{ inputs.checkout_ref || github.sha }}
281266 fetch-depth : 0
282267 persist-credentials : false
283268
@@ -326,11 +311,10 @@ jobs:
326311 TEST_SSH_KEY : ${{ github.workspace }}/testdata/ssh/test_key
327312
328313 e2e :
329- runs-on : ${{ (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
314+ runs-on : ${{ github.repository == 'kenn-io/agentsview' && (github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || 'ubuntu-latest' }}
330315 steps :
331316 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
332317 with :
333- ref : ${{ inputs.checkout_ref || github.sha }}
334318 fetch-depth : 0
335319 persist-credentials : false
336320
0 commit comments