Skip to content

refactor: 重构 GitHub Actions 配置并中文化 #36

refactor: 重构 GitHub Actions 配置并中文化

refactor: 重构 GitHub Actions 配置并中文化 #36

Workflow file for this run

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'