优先读取当前目录下的配置文件 #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go tester | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Download Modules | |
run: go mod download -json | |
- name: Go lint | |
run: | | |
go install golang.org/x/lint/golint@latest | |
golint ./... | |
go vet ./... | |
- name: Run version command | |
env: | |
TZ: Asia/Shanghai | |
run: | | |
make | |
chmod +x ./billing | |
./billing version |