Update GH actions
* updating github actions * cleaning the file from makefile * bump to v1.45.2
This commit is contained in:
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@@ -15,11 +15,16 @@ jobs:
|
|||||||
SCYLLA_VERSION: 4.2.0
|
SCYLLA_VERSION: 4.2.0
|
||||||
GOBIN: ./bin
|
GOBIN: ./bin
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Git Checkout
|
||||||
- uses: actions/setup-go@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Go 1.17
|
||||||
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '^1.17'
|
go-version: 1.17
|
||||||
- uses: actions/cache@v2
|
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
id: gomod-cache
|
id: gomod-cache
|
||||||
with:
|
with:
|
||||||
path: ~/go/pkg/mod
|
path: ~/go/pkg/mod
|
||||||
@@ -27,8 +32,19 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
- run: mkdir -p ${GOBIN}
|
- name: Make Directory for GOBIN
|
||||||
- run: make get-deps get-tools
|
run: mkdir -p ${GOBIN}
|
||||||
- run: make check
|
|
||||||
- run: make run-scylla
|
- name: Download Dependencies
|
||||||
- run: make test
|
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
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -69,4 +69,4 @@ endef
|
|||||||
.PHONY: get-tools
|
.PHONY: get-tools
|
||||||
get-tools:
|
get-tools:
|
||||||
@echo "==> Installing tools at $(GOBIN)..."
|
@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)
|
||||||
|
|||||||
Reference in New Issue
Block a user