Update .gitea/workflows/test.yml

This commit is contained in:
Evan 2023-10-16 21:58:11 -04:00
parent 6172c743df
commit 4bd64fd17f
1 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,9 @@
name: checks
on:
- push
- pull_request
on:
push:
paths:
- '.gitea/workflows/test.yaml'
- '*.go'
env:
GOPROXY: https://goproxy.io,direct
@ -31,10 +33,10 @@ jobs:
restore-keys: |
go_cache-${{ github.repository }}-
go_cache-
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20
- uses: actions/checkout@v3
go-version: stable
- uses: actions/checkout@v4
- name: lint
run: go install golang.org/x/lint/golint@latest && golint ./...
- name: vet