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
|
||||
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
|
||||
|
||||
2
Makefile
2
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)
|
||||
|
||||
Reference in New Issue
Block a user