Merge pull request 'develop' (#13) from develop into main
Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/13 Reviewed-by: cfy777 <3087823110@qq.com>
This commit was merged in pull request #13.
This commit is contained in:
@@ -3,25 +3,26 @@ name: Backend CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: [backend/**]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths: [backend/**]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: aliyun
|
||||
container: golang:1.23-bookworm
|
||||
env:
|
||||
GOPROXY: https://goproxy.cn,direct
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
steps:
|
||||
- uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.23"
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
env:
|
||||
GOPROXY: https://goproxy.cn,direct
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
@@ -3,23 +3,26 @@ name: Frontend CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: [frontend/**]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths: [frontend/**]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: aliyun
|
||||
container: node:22-bookworm
|
||||
env:
|
||||
npm_config_registry: https://registry.npmmirror.com
|
||||
defaults:
|
||||
run:
|
||||
working-directory: frontend
|
||||
steps:
|
||||
- uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
env:
|
||||
npm_config_registry: https://registry.npmmirror.com
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
||||
18
.gitea/workflows/health-test.yml
Normal file
18
.gitea/workflows/health-test.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Health Test
|
||||
run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
health:
|
||||
runs-on: aliyun
|
||||
steps:
|
||||
- run: echo "🎉 Triggered by ${{ gitea.event_name }} event"
|
||||
- run: echo "🌿 Branch: ${{ gitea.ref }}, Repo: ${{ gitea.repository }}"
|
||||
- run: echo "🐧 Running on ${{ runner.os }}, workspace: ${{ gitea.workspace }}"
|
||||
- name: Check out repository code
|
||||
uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
|
||||
- run: echo "💡 ${{ gitea.repository }} has been cloned to the runner"
|
||||
- name: List files in the repository
|
||||
run: ls ${{ gitea.workspace }}
|
||||
- run: echo "🍏 Job status: ${{ job.status }}"
|
||||
Reference in New Issue
Block a user