Files
agent-desk-ng/.github/workflows/ci.yml

63 lines
1.3 KiB
YAML

name: CI
on:
pull_request:
branches:
- main
- dev
paths-ignore:
- "**.md"
- "docs/**"
- "screenshots/**"
- ".gitignore"
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
backend-test:
name: Backend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
- name: Run Go Tests
run: |
go test -v -tags dev ./internal/services/... ./internal/repositories/... ./internal/pkg/... ./internal/oidcclient/... ./internal/migration/...
frontend-typecheck:
name: Frontend Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: web/pnpm-lock.yaml
- name: Install dependencies
run: |
cd web && pnpm install --frozen-lockfile
- name: Run Typecheck
run: |
cd web && pnpm typecheck