gitea/.gitea/workflows/pr-checks.yml
logikonline 5bb06851b8
Some checks failed
Build and Release / Lint and Test (push) Successful in 23m20s
Build and Release / Build Binaries (amd64, windows) (push) Failing after 1m41s
Build and Release / Build Binaries (amd64, darwin) (push) Failing after 2m19s
Build and Release / Build Docker Image (push) Failing after 50s
Build and Release / Build Binaries (arm64, linux) (push) Failing after 2m5s
Build and Release / Build Binaries (amd64, linux) (push) Failing after 8m5s
Build and Release / Build Binaries (arm64, darwin) (push) Failing after 8m3s
Build and Release / Create Release (push) Has been skipped
fix: use Go 1.25 in CI workflows
Updated GO_VERSION from 1.23 to 1.25 in both build.yml and pr-checks.yml.
Reverted Makefile lint targets to use default settings since Go 1.25
supports GOEXPERIMENT=jsonv2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 16:43:06 -05:00

107 lines
2.2 KiB
YAML

name: PR Checks
on:
pull_request:
branches:
- main
- release/*
env:
GOPROXY: https://proxy.golang.org,direct
GO_VERSION: "1.25"
NODE_VERSION: "22"
jobs:
# Quick checks for PRs
checks:
name: Code Quality Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install pnpm
run: npm install -g pnpm
- name: Install Go dependencies
run: go mod download
- name: Check Go formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted. Please run 'gofmt -w .'"
gofmt -l .
exit 1
fi
- name: Go vet
run: go vet ./...
- name: Check for build errors
run: go build -v ./...
# Unit tests
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run unit tests
run: |
go test -v -race -coverprofile=coverage.out ./...
continue-on-error: true
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
retention-days: 7
# Frontend checks
frontend:
name: Frontend Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
continue-on-error: true
- name: TypeScript check
run: pnpm run tsc
continue-on-error: true
- name: ESLint
run: pnpm run eslint
continue-on-error: true