This commit is contained in:
40
.gitea/workflows/test.yaml
Normal file
40
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- !main
|
||||
- !release/*
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- !main
|
||||
- !release/*
|
||||
|
||||
env:
|
||||
GOPROXY: ${{ secrets.GOPROXY && secrets.GOPROXY || 'https://goproxy.cn,direct' }}
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4.2.0
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Lint
|
||||
# uses: golangci/golangci-lint-action@v3
|
||||
uses: actions/golangci-lint-action@v3
|
||||
with:
|
||||
version: latest
|
||||
install-mode: goinstall
|
||||
|
||||
- name: Tests
|
||||
run: |
|
||||
go test $(go list ./...)
|
||||
|
Reference in New Issue
Block a user