Files
llama-link/.github/workflows/ci.yml
T
darroyo 0f3ea42eed
CI / test (push) Failing after 12m52s
Fix CI: replace curl install with go install for golangci-lint
curl install script has stale SHA256 hash for latest version (v2.12.2).
Using go install pins version and avoids hash verification issues.
2026-07-30 15:53:13 -04:00

53 lines
1.1 KiB
YAML

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: web/frontend/package-lock.json
- name: Install frontend deps
run: cd web/frontend && npm ci
- name: Build frontend
run: cd web/frontend && npm run build
- name: Download Go deps
run: go mod download
- name: Build
run: go build ./cmd/... ./internal/...
- name: Vet
run: go vet ./cmd/... ./internal/...
- name: Test
run: go test -race -coverprofile=coverage.out ./cmd/... ./internal/...
- name: Lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
golangci-lint run ./cmd/... ./internal/...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out