From af12adf8e938595d5814debc12a4f9b7eb62aa2a Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Tue, 21 Jan 2025 11:07:59 +0530 Subject: [PATCH] KUBESAW-173: Create GH Actions workflow running verify-replace-run target (#452) * KUBESAW-173: Create GH Actions workflow running verify-replace-run target Signed-off-by: Feny Mehta * using the binary for golangci-lint Signed-off-by: Feny Mehta * removing on.push.master trigger Signed-off-by: Feny Mehta --------- Signed-off-by: Feny Mehta Co-authored-by: Alexey Kazakov --- .github/workflows/verify-dependencies.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/verify-dependencies.yml diff --git a/.github/workflows/verify-dependencies.yml b/.github/workflows/verify-dependencies.yml new file mode 100644 index 00000000..c4165afc --- /dev/null +++ b/.github/workflows/verify-dependencies.yml @@ -0,0 +1,27 @@ +name: verify-dependencies +on: + pull_request: + branches: + - master + +jobs: + verify-dependencies: + name: Verify Dependencies + runs-on: ubuntu-20.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Install golangci-lint + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.63.1 + + - name: Verify + run: | + make verify-replace-run \ No newline at end of file