refactor: 重构 GitHub Actions 配置并中文化 #36
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: 测试构建 | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - develop | |
| - feature/* | |
| paths-ignore: | |
| - '*.md' | |
| - '*.txt' | |
| - 'README*' | |
| - 'LICENSE*' | |
| - 'image/**' | |
| - 'TestDocker/**' | |
| - '**/*.png' | |
| - '**/*.jpg' | |
| - '**/*.jpeg' | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - dev | |
| paths-ignore: | |
| - '*.md' | |
| - '*.txt' | |
| - 'README*' | |
| - 'LICENSE*' | |
| - 'image/**' | |
| - 'TestDocker/**' | |
| - '**/*.png' | |
| - '**/*.jpg' | |
| - '**/*.jpeg' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: 检出代码 | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: 快照构建 | |
| uses: ./.github/actions/build-release | |
| with: | |
| mode: snapshot | |
| go-version: '1.20' | |
| retention-days: '7' |