mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 21:35:34 +03:00
Improve workflow
This commit is contained in:
9
.github/workflows/test.yaml
vendored
9
.github/workflows/test.yaml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: test
|
||||
|
||||
on:
|
||||
@@ -12,15 +13,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
uses: https://github.com/actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.20.x
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
|
||||
- name: go mod package cache
|
||||
uses: actions/cache@v3
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
@@ -33,7 +34,7 @@ jobs:
|
||||
run: go test ./...
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
uses: https://github.com/golangci/golangci-lint-action@v3
|
||||
with:
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user