Files
oikos/vendor/github.com/apapsch/go-jsonmerge/v2/.gitlab-ci.yml
dtoro febc153b7f
Some checks failed
ci / build-test (push) Has been cancelled
ci / docker-build (push) Has been cancelled
ci / web (push) Has been cancelled
Desktop App / Build Linux (amd64) (push) Has been cancelled
Desktop App / Attach to Release (push) Has been cancelled
fix: add involves edge from task to agent:nomos at creation
Plus sync vendor directory for Docker build compatibility.
2026-08-11 22:03:12 +02:00

43 lines
1.1 KiB
YAML

variables:
GOPROJ: "github.com/RaveNoX/go-jsonmerge"
stages:
- test
- build
test:
tags:
- docker
- linux
image: golang:latest
stage: test
script:
- mkdir -p artifacts
- go test -cover -v -coverprofile="./artifacts/cover.out" ./
- go tool cover -html="./artifacts/cover.out" -o "./artifacts/cover.htm"
- go test -cover -v -coverprofile="./artifacts/cover_cmd.out" ./cmd/jsonmerge
- go tool cover -html="./artifacts/cover_cmd.out" -o "./artifacts/cover_cmd.htm"
artifacts:
paths:
- artifacts/*
build:
stage: build
tags:
- docker
- linux
image: golang:latest
script:
- mkdir -p artifacts
- echo "Building for Linux"
- GOOS=linux GOARCH=amd64 go build -o artifacts/jsonmerge ./cmd/jsonmerge
- echo "Building for MacOS (darwin)"
- GOOS=darwin GOARCH=amd64 go build -o artifacts/jsonmerge_darwin ./cmd/jsonmerge
- echo "Building for Windows"
- GOOS=windows GOARCH=amd64 go build -o artifacts/jsonmerge.exe ./cmd/jsonmerge
artifacts:
paths:
- artifacts/*