diff options
| author | 2026-05-29 06:43:43 +0000 | |
|---|---|---|
| committer | 2026-05-29 06:43:43 +0000 | |
| commit | 3b21da3051c2f4d899da5aac021f646fc28acea9 (patch) | |
| tree | d5f51066fa73322843697afa7cedc290d4b50545 | |
| parent | Fix badge (diff) | |
| signature | No signature | |
ci: Simplify with a local script next
| -rw-r--r-- | .builds/alpine.yml | 28 | ||||
| -rwxr-xr-x | check | 29 |
2 files changed, 31 insertions, 26 deletions
diff --git a/.builds/alpine.yml b/.builds/alpine.yml index 6c5a2f45..d336c439 100644 --- a/.builds/alpine.yml +++ b/.builds/alpine.yml @@ -4,30 +4,6 @@ packages: - git - golangci-lint tasks: - - apk: | - sudo apk update - sudo apk upgrade - - build: | + - check: | cd furgit - go build ./... - - test: | - cd furgit - go test -v -count 1 $(go list ./... | grep -v '/internal/compress') - - test-race: | - cd furgit - go test -race -v -count 1 $(go list ./... | grep -v '/internal/compress') - - test-purego: | - cd furgit - go test -v -tags purego -count 1 $(go list ./... | grep -v '/internal/compress') - - lint: | - cd furgit - golangci-lint run ./... - - vet: | - cd furgit - go vet ./... - - fmt-check: | - cd furgit - test -z "$(gofmt -l .)" - - fix-check: | - cd furgit - test -z "$(go fix -diff ./...)" + ./check @@ -0,0 +1,29 @@ +#!/bin/sh + +llmagent() { + printf >&2 'LLM agents are not allowed in this project.\n' + exit 1 +} + +[ "${CODEX_MANAGED_PACKAGE_ROOT+set}" = set ] && llmagent +[ "${CODEX_MANAGED_BY_NPM+set}" = set ] && llmagent +[ "${CODEX_THREAD_ID+set}" = set ] && llmagent +[ "${CODEX_CI+set}" = set ] && llmagent +[ "${CODEX_SANDBOX_NETWORK_DISABLED+set}" = set ] && llmagent +[ "${AI_AGENT+set}" = set ] && llmagent +[ "${CLAUDECODE+set}" = set ] && llmagent +[ "${CLAUDE_CODE_ENTRYPOINT+set}" = set ] && llmagent +[ "${CLAUDE_CODE_EXECPATH+set}" = set ] && llmagent +[ "${CLAUDE_CODE_SESSION_ID+set}" = set ] && llmagent +[ "${CLAUDE_CODE_TMPDIR+set}" = set ] && llmagent + +set -eux + +go build ./... +go test -count 1 $(go list ./... | grep -v '/internal/compress') +go test -race -count 1 $(go list ./... | grep -v '/internal/compress') +go test -tags purego -count 1 $(go list ./... | grep -v '/internal/compress') +golangci-lint run ./... +go vet ./... +test -z "$(gofmt -l .)" +test -z "$(go fix -diff ./...)" |
