Improve workflow

This commit is contained in:
2023-04-15 20:17:02 +03:00
parent c0f3ea37f8
commit 4e728ed4f5

View File

@@ -1,3 +1,4 @@
---
name: test name: test
on: on:
@@ -12,15 +13,15 @@ jobs:
steps: steps:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v3 uses: https://github.com/actions/setup-go@v3
with: with:
go-version: 1.20.x go-version: 1.20.x
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: https://github.com/actions/checkout@v3
- name: go mod package cache - name: go mod package cache
uses: actions/cache@v3 uses: https://github.com/actions/cache@v3
with: with:
path: | path: |
~/.cache/go-build ~/.cache/go-build
@@ -33,7 +34,7 @@ jobs:
run: go test ./... run: go test ./...
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 uses: https://github.com/golangci/golangci-lint-action@v3
with: with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest version: latest