Skip to content

Commit

Permalink
Update GH actions
Browse files Browse the repository at this point in the history
* updating github actions
* cleaning the file from makefile
* bump to v1.45.2
  • Loading branch information
mrwormhole authored May 4, 2022
1 parent 5cffcdf commit c43e18b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,36 @@ 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
key: ${{ runner.os }}-go-${{ hashFiles('go.mod') }}
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 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c43e18b

Please sign in to comment.