Skip to content

Commit 5fc63ba

Browse files
authored
Merge pull request #77 from Moulick/main
Add check for go mod tidy
2 parents 2218963 + 61e601c commit 5fc63ba

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
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:
@@ -70,7 +73,7 @@ jobs:
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:

renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@
1212
"matchFileNames": ["example/**"],
1313
"groupName": "examples"
1414
}
15+
],
16+
"postUpdateOptions": [
17+
"gomodTidy",
18+
"gomodUpdateImportPaths"
1519
]
1620
}

0 commit comments

Comments
 (0)