Skip to content

Commit

Permalink
ci: add mod tidy step (#208)
Browse files Browse the repository at this point in the history
* ci: add mod tidy step

Signed-off-by: Nikita Pivkin <[email protected]>

* run mod tidy

Signed-off-by: Nikita Pivkin <[email protected]>

---------

Signed-off-by: Nikita Pivkin <[email protected]>
  • Loading branch information
nikpivkin authored Aug 14, 2024
1 parent d46218f commit 36eac7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@ jobs:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum

- uses: actions/setup-go@v5
if: matrix.os == 'windows-latest'
with:
go-version-file: go.mod
cache: false

- name: go mod tidy
if: matrix.os == 'ubuntu-latest'
run: |
go mod tidy
if [ -n "$(git status --porcelain)" ]; then
echo "Run 'go mod tidy' and push it"
exit 1
fi
- name: Run non-localstack tests
if: matrix.os != 'ubuntu-latest'
run: make test-no-localstack
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ require (
github.com/liamg/memoryfs v1.6.0
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.9.0
github.com/testcontainers/testcontainers-go v0.31.0
github.com/testcontainers/testcontainers-go/modules/localstack v0.31.0
Expand Down Expand Up @@ -289,7 +290,6 @@ require (
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.18.2 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tchap/go-patricia/v2 v2.3.1 // indirect
Expand Down

0 comments on commit 36eac7e

Please sign in to comment.