mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 06:43:23 +08:00
feat: ai 员工
This commit is contained in:
25
.github/workflows/backend-ci-cd.yml
vendored
25
.github/workflows/backend-ci-cd.yml
vendored
@@ -30,17 +30,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.23'
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
go-version: '1.25'
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
@@ -49,19 +39,6 @@ jobs:
|
||||
run: |
|
||||
touch docs/swagger.json
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v ./...
|
||||
|
||||
- name: Validate go.mod and go.sum
|
||||
run: |
|
||||
go mod tidy
|
||||
go mod verify
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "go.mod or go.sum files are not up to date"
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
|
||||
build:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user