Compare commits
3 Commits
10c18038f2
...
91cb12a47f
| Author | SHA1 | Date | |
|---|---|---|---|
| 91cb12a47f | |||
| fe23053564 | |||
| 0304c1d27f |
34
.gitea/workflow/backend-ci.yml
Normal file
34
.gitea/workflow/backend-ci.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Backend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, main]
|
||||
paths: [backend/**]
|
||||
pull_request:
|
||||
branches: [develop, main]
|
||||
paths: [backend/**]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.23"
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Build
|
||||
run: go build ./cmd/server
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
33
.gitea/workflow/frontend-ci.yml
Normal file
33
.gitea/workflow/frontend-ci.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Frontend CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, main]
|
||||
paths: [frontend/**]
|
||||
pull_request:
|
||||
branches: [develop, main]
|
||||
paths: [frontend/**]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: frontend
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Type check & Build
|
||||
run: npm run build
|
||||
Reference in New Issue
Block a user