Files
darroyo a54b134e87
CI / test (push) Successful in 22m22s
Release / build (false, amd64, darwin) (push) Failing after 10m29s
Release / build (false, amd64, windows) (push) Failing after 10m20s
Release / build (false, arm64, darwin) (push) Failing after 10m25s
Release / build (true, amd64, linux) (push) Failing after 10m57s
Release / build (true, arm64, linux) (push) Failing after 10m34s
Release / release (push) Has been skipped
CI: fix upload coverage for Gitea Actions
Use if: always() + continue-on-error: true instead of if-no-files-found: warn
Gitea Actions may not fully support all upload-artifact@v4 options
2026-07-30 22:53:27 -04:00

55 lines
1.2 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.64.8
golangci-lint run ./cmd/... ./internal/...
- name: Upload coverage
if: always()
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out