mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-05 08:18:17 +00:00
Bumps the github-actions group with 11 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/setup-node](https://github.com/actions/setup-node) | `6.2.0` | `6.3.0` | | [actions/setup-go](https://github.com/actions/setup-go) | `6.2.0` | `6.3.0` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `5.10.0` | `6.0.0` | | [docker/login-action](https://github.com/docker/login-action) | `3.7.0` | `4.0.0` | | [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) | `3.2.0` | `4.1.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.12.0` | `4.0.0` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `6.18.0` | `7.0.0` | | [actions-hub/kubectl](https://github.com/actions-hub/kubectl) | `1.35.1` | `1.35.2` | | [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action) | `1.4.0` | `1.4.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `6.0.0` | `7.0.0` | | [shimataro/ssh-key-action](https://github.com/shimataro/ssh-key-action) | `2.7.0` | `2.8.0` | Updates `actions/setup-node` from 6.2.0 to 6.3.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](6044e13b5d...53b83947a5) Updates `actions/setup-go` from 6.2.0 to 6.3.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](7a3fe6cf4c...4b73464bb3) Updates `docker/metadata-action` from 5.10.0 to 6.0.0 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](c299e40c65...030e881283) Updates `docker/login-action` from 3.7.0 to 4.0.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](c94ce9fb46...b45d80f862) Updates `actions/attest-build-provenance` from 3.2.0 to 4.1.0 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](96278af6ca...a2bbfa2537) Updates `docker/setup-buildx-action` from 3.12.0 to 4.0.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](8d2750c68a...4d04d5d948) Updates `docker/build-push-action` from 6.18.0 to 7.0.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](263435318d...d08e5c354a) Updates `actions-hub/kubectl` from 1.35.1 to 1.35.2 - [Release notes](https://github.com/actions-hub/kubectl/releases) - [Commits](3ece3793e7...5ada4e2c02) Updates `dominikh/staticcheck-action` from 1.4.0 to 1.4.1 - [Release notes](https://github.com/dominikh/staticcheck-action/releases) - [Changelog](https://github.com/dominikh/staticcheck-action/blob/master/CHANGES.md) - [Commits](024238d289...9716614d41) Updates `actions/upload-artifact` from 6.0.0 to 7.0.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](b7c566a772...bbbca2ddaa) Updates `shimataro/ssh-key-action` from 2.7.0 to 2.8.0 - [Release notes](https://github.com/shimataro/ssh-key-action/releases) - [Changelog](https://github.com/shimataro/ssh-key-action/blob/v2/CHANGELOG.md) - [Commits](d4fffb5087...6b84f2e793) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/setup-go dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/metadata-action dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/login-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/attest-build-provenance dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/setup-buildx-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/build-push-action dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions-hub/kubectl dependency-version: 1.35.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: dominikh/staticcheck-action dependency-version: 1.4.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: shimataro/ssh-key-action dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
name: Go Mod Tidy Check
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
go_mod_tidy_check:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
|
with:
|
|
go-version: "stable"
|
|
|
|
- name: Check go.mod and go.sum in main directory
|
|
run: |
|
|
# Store original file state
|
|
cp go.mod go.mod.orig
|
|
cp go.sum go.sum.orig
|
|
|
|
# Run go mod tidy
|
|
go mod tidy
|
|
|
|
# Check if files changed
|
|
if ! diff -q go.mod.orig go.mod > /dev/null 2>&1; then
|
|
echo "ERROR: go.mod in main directory has changed after running 'go mod tidy'"
|
|
echo "Please run 'go mod tidy' locally and commit the changes"
|
|
diff go.mod.orig go.mod
|
|
exit 1
|
|
fi
|
|
|
|
if ! diff -q go.sum.orig go.sum > /dev/null 2>&1; then
|
|
echo "ERROR: go.sum in main directory has changed after running 'go mod tidy'"
|
|
echo "Please run 'go mod tidy' locally and commit the changes"
|
|
diff go.sum.orig go.sum
|
|
exit 1
|
|
fi
|
|
|
|
echo "SUCCESS: go.mod and go.sum in main directory are tidy"
|
|
|
|
- name: Check go.mod and go.sum in test directory
|
|
run: |
|
|
cd test
|
|
|
|
# Store original file state
|
|
cp go.mod go.mod.orig
|
|
cp go.sum go.sum.orig
|
|
|
|
# Run go mod tidy
|
|
go mod tidy
|
|
|
|
# Check if files changed
|
|
if ! diff -q go.mod.orig go.mod > /dev/null 2>&1; then
|
|
echo "ERROR: go.mod in test directory has changed after running 'go mod tidy'"
|
|
echo "Please run 'go mod tidy' locally and commit the changes"
|
|
diff go.mod.orig go.mod
|
|
exit 1
|
|
fi
|
|
|
|
if ! diff -q go.sum.orig go.sum > /dev/null 2>&1; then
|
|
echo "ERROR: go.sum in test directory has changed after running 'go mod tidy'"
|
|
echo "Please run 'go mod tidy' locally and commit the changes"
|
|
diff go.sum.orig go.sum
|
|
exit 1
|
|
fi
|
|
|
|
echo "SUCCESS: go.mod and go.sum in test directory are tidy"
|