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 4848 go-version : ${{ env.GO_VERSION }}
4949 cache : false # The golangci-lint action does its own caching.
5050
51+ - name : Check go mod tidy
52+ run : go mod tidy && git diff --exit-code go.mod go.sum
53+
5154 - name : Lint
5255 uses : golangci/golangci-lint-action@v6
5356 with :
7073 # We want to build most packages for the amd64 and arm64 architectures. To
7174 # speed this up we build single-platform packages in parallel. We then upload
7275 # 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.
7477 build :
7578 runs-on : ubuntu-24.04
7679 strategy :
@@ -108,13 +111,13 @@ jobs:
108111 build-args :
109112 GO_VERSION=${{ env.GO_VERSION }}
110113 outputs : type=docker,dest=runtime-${{ matrix.arch }}.tar
111-
114+
112115 - name : Setup the Crossplane CLI
113116 run : " curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh"
114117
115118 - name : Build Package
116119 run : ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime-${{ matrix.arch }}.tar
117-
120+
118121 - name : Upload Single-Platform Package
119122 uses : actions/upload-artifact@v4
120123 with :
Original file line number Diff line number Diff line change 1212 "matchFileNames" : [" example/**" ],
1313 "groupName" : " examples"
1414 }
15+ ],
16+ "postUpdateOptions" : [
17+ " gomodTidy" ,
18+ " gomodUpdateImportPaths"
1519 ]
1620}
You can’t perform that action at this time.
0 commit comments