From c43e18b2d330813138bb130e773a45aaa9f751ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Talha=20Alt=C4=B1nel?= Date: Wed, 4 May 2022 10:49:47 +0100 Subject: [PATCH] Update GH actions * updating github actions * cleaning the file from makefile * bump to v1.45.2 --- .github/workflows/main.yml | 34 +++++++++++++++++++++++++--------- Makefile | 2 +- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b7d92c..b01bd71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,11 +15,16 @@ jobs: SCYLLA_VERSION: 4.2.0 GOBIN: ./bin steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - name: Git Checkout + uses: actions/checkout@v3 + + - name: Install Go 1.17 + uses: actions/setup-go@v3 with: - go-version: '^1.17' - - uses: actions/cache@v2 + go-version: 1.17 + + - name: Cache Dependencies + uses: actions/cache@v3 id: gomod-cache with: path: ~/go/pkg/mod @@ -27,8 +32,19 @@ jobs: restore-keys: | ${{ runner.os }}-go- - - run: mkdir -p ${GOBIN} - - run: make get-deps get-tools - - run: make check - - run: make run-scylla - - run: make test + - name: Make Directory for GOBIN + run: mkdir -p ${GOBIN} + + - name: Download Dependencies + run: make get-deps + + - name: Lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.45.2 + + - name: Run Scylla Container + run: make run-scylla + + - name: Test + run: make test diff --git a/Makefile b/Makefile index 263613d..ad6f721 100644 --- a/Makefile +++ b/Makefile @@ -69,4 +69,4 @@ endef .PHONY: get-tools get-tools: @echo "==> Installing tools at $(GOBIN)..." - @$(call dl_tgz,golangci-lint,https://github.com/golangci/golangci-lint/releases/download/v1.24.0/golangci-lint-1.24.0-linux-amd64.tar.gz) + @$(call dl_tgz,golangci-lint,https://github.com/golangci/golangci-lint/releases/download/v1.45.2/golangci-lint-v1.45.2-linux-amd64.tar.gz)