Skip to content

Commit 6986b4b

Browse files
authored
💚 Upload generated go extension files during CI run (#94)
<!-- Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. SPDX-License-Identifier: Proprietary --> ### Description This change ensures that any generated go extension files are uploaded during a CI run so that build errors relating to them can be verified. ### Test Coverage <!-- Please put an `x` in the correct box e.g. `[x]` to indicate the testing coverage of this change. --> - [ ] This change is covered by existing or additional automated tests. - [ ] Manual testing has been performed (and evidence provided) as automated testing was not feasible. - [X] Additional tests are not required for this change (e.g. documentation update).
1 parent c30124e commit 6986b4b

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/update-client.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,18 @@ jobs:
9898
go run main.go -i ../all-service-definition/all-def-flat.yaml -o ../extensions/extension_link_followers.gen.go -t templates/linkfollowers.go.tmpl -g links -c ../client
9999
- name: Copy extensions to client
100100
run: |
101-
if [ -d ./extensions/ ] ; then cp -r extensions/. ${{ env.go_module }}/ ; fi
101+
if [ -d ./extensions/ ]; then
102+
cp -r extensions/. ${{ env.go_module }}/
103+
echo "EXTENSIONS_EXISTS=true" >> $GITHUB_ENV
104+
fi
102105
ls -l ${{ env.go_module }}/*
106+
- name: Upload extensions
107+
if: ${{ env.EXTENSIONS_EXISTS == 'true' }}
108+
uses: actions/upload-artifact@v4
109+
with:
110+
name: extensions
111+
path: extensions/
112+
retention-days: 1
103113
- name: License files
104114
run: |
105115
cd-license-files

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,5 @@
149149
}
150150
]
151151
},
152-
"generated_at": "2025-06-17T15:02:37Z"
152+
"generated_at": "2025-06-19T13:33:59Z"
153153
}

changes/20250619143339.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:green_heart: Upload generated go extension files during CI flow

0 commit comments

Comments
 (0)