File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 48
48
go-version : ${{ env.GO_VERSION }}
49
49
cache : false # The golangci-lint action does its own caching.
50
50
51
+ - name : Check go mod tidy
52
+ run : go mod tidy && git diff --exit-code go.mod go.sum
53
+
51
54
- name : Lint
52
55
uses : golangci/golangci-lint-action@v6
53
56
with :
70
73
# We want to build most packages for the amd64 and arm64 architectures. To
71
74
# speed this up we build single-platform packages in parallel. We then upload
72
75
# those packages to GitHub as a build artifact. The push job downloads those
73
- # artifacts and pushes them as a single multi-platform package.
76
+ # artifacts and pushes them as a single multi-platform package.
74
77
build :
75
78
runs-on : ubuntu-24.04
76
79
strategy :
@@ -108,13 +111,13 @@ jobs:
108
111
build-args :
109
112
GO_VERSION=${{ env.GO_VERSION }}
110
113
outputs : type=docker,dest=runtime-${{ matrix.arch }}.tar
111
-
114
+
112
115
- name : Setup the Crossplane CLI
113
116
run : " curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh"
114
117
115
118
- name : Build Package
116
119
run : ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime-${{ matrix.arch }}.tar
117
-
120
+
118
121
- name : Upload Single-Platform Package
119
122
uses : actions/upload-artifact@v4
120
123
with :
Original file line number Diff line number Diff line change 12
12
"matchFileNames" : [" example/**" ],
13
13
"groupName" : " examples"
14
14
}
15
+ ],
16
+ "postUpdateOptions" : [
17
+ " gomodTidy" ,
18
+ " gomodUpdateImportPaths"
15
19
]
16
20
}
You can’t perform that action at this time.
0 commit comments