From 5a08f98354c6c9c879e1039d88eb9b7d3b39d1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pawl=C4=99ga?= <42772730+FoSix@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:24:30 +0200 Subject: [PATCH] ci(PR): test if dependencies are up to date (#5) --- .github/workflows/pr_ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pr_ci.yml b/.github/workflows/pr_ci.yml index c435f5b..cf6c081 100644 --- a/.github/workflows/pr_ci.yml +++ b/.github/workflows/pr_ci.yml @@ -28,6 +28,16 @@ jobs: - name: Download Go dependencies run: go get ./... && go mod tidy + - name: Check if all dependencies were commited + shell: bash + run: | + if [ "$(git status --porcelain)" ]; then + git status + exit 1 + else + exit 0 + fi + ### Uncomment it, when tests are prepared # - name: Test code # run: go test -v ./...