H-337: restore minimal GitHub Actions CI (#62)
* ci(H-337): restore minimal GitHub Actions checks * ci(H-337): preserve workflow check identity --------- Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
name: GoChat CI/CD Pipeline
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
backend:
|
||||
name: Backend (SQLite)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: backend/go.mod
|
||||
cache-dependency-path: backend/go.sum
|
||||
- name: Test
|
||||
working-directory: backend
|
||||
env:
|
||||
GOCHAT_TEST_DB: sqlite
|
||||
run: go test ./internal/... ./pkg/... ./cmd/...
|
||||
- name: Build
|
||||
working-directory: backend
|
||||
run: go build ./...
|
||||
- name: Vet
|
||||
working-directory: backend
|
||||
run: go vet ./...
|
||||
|
||||
frontend:
|
||||
name: Frontend Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- run: corepack enable
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm --dir frontend build
|
||||
Reference in New Issue
Block a user