feat: Add new features and improvements across multiple packages #25
This file contains 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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 # 设置整个job的超时时间为15分钟 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23' | |
- name: Build | |
run: go build -v ./... | |
timeout-minutes: 5 # 设置构建步骤的超时时间为5分钟 | |
- name: Test | |
run: go test -v ./... | |
timeout-minutes: 3 # 设置测试步骤的超时时间为10分钟 |