59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: Quality Checks
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, development, 'feature/**' ]
|
|
pull_request:
|
|
branches: [ main, development ]
|
|
|
|
jobs:
|
|
backend-quality:
|
|
name: Backend (Go)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
|
with:
|
|
go-version: '1.24.4'
|
|
cache-dependency-path: backend/go.sum
|
|
|
|
- name: Run Go tests
|
|
working-directory: backend
|
|
run: go test -v ./...
|
|
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.0
|
|
with:
|
|
version: latest
|
|
working-directory: backend
|
|
args: --timeout=5m
|
|
continue-on-error: true
|
|
|
|
frontend-quality:
|
|
name: Frontend (React)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
|
with:
|
|
node-version: '24.11.1'
|
|
cache: 'npm'
|
|
cache-dependency-path: frontend/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
working-directory: frontend
|
|
run: npm ci
|
|
|
|
- name: Run frontend tests
|
|
working-directory: frontend
|
|
run: npm test
|
|
|
|
- name: Run frontend lint
|
|
working-directory: frontend
|
|
run: npm run lint
|
|
continue-on-error: true
|