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