gnu: go-github-com-nektos-act: Enable tests.

* gnu/packages/golang-vcs.scm (go-github-com-nektos-act) [arguments]
<tests?>: Enable most of them.
<test-flags>: Skip some problematic tests.
[propagated-inputs]: Remove go-github-com-go-git-go-billy-v5,
go-github-com-stretchr-testify, and go-gotest-tools-v3; add
go-dario-cat-mergo.
[native-inputs]: Add go-github-com-go-git-go-billy-v5,
go-github-com-stretchr-testify, and go-gotest-tools-v3.

Change-Id: I85c765f835149686160be46488a55ada2d4aaa07
This commit is contained in:
Sharlatan Hellseher 2025-06-20 23:13:20 +01:00
parent bada938227
commit de2c6771e9
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -234,53 +234,90 @@ using the Git pkt-line format used in various Git operations.")
#:go go-1.23 #:go go-1.23
#:import-path "github.com/nektos/act" #:import-path "github.com/nektos/act"
#:embed-files #~(list ".*\\.json") #:embed-files #~(list ".*\\.json")
#:tests? #f ;XXX: one test fails for unknown reasons #:test-flags
#:phases #~(modify-phases %standard-phases #~(list "-skip" (string-join
;; The buildkit dependency tree is *massive* and the only ;; Network access is required.
;; thing that's used is the dockerignore module, which is (list "TestArtifactFlow/GHSL-2023-004"
;; just an alias to github.com/moby/patternmatcher which "TestArtifactFlow/upload-and-download"
;; this library already depends on! "TestFindGitRemoteURL"
(add-after 'unpack 'fix-dockerignore "TestGitCloneExecutor"
(lambda _ "TestGitFindRef"
(substitute* "src/github.com/nektos/act/pkg/container/docker_build.go" "TestHandler_gcCache"
(("\"github.com/moby/buildkit/frontend/dockerfile/dockerignore\"") "TestImageExistsLocally"
"dockerignore \"github.com/moby/patternmatcher/ignorefile\""))))))) "TestHandler"
(propagated-inputs (list go-github-com-adrg-xdg "TestJobExecutor"
go-github-com-alecaivazis-survey-v2 ;; Running Docker is required.
go-github-com-andreaskoch-go-fswatch "TestDocker"
go-github-com-creack-pty ;; Something else...
;; go-dario-cat-mergo "TestActionCache"
go-github-com-distribution-reference "TestInterpolate"
go-github-com-docker-cli "TestRunContext_EvalBool"
go-github-com-docker-distribution "TestDryrunEvent"
go-github-com-docker-docker "TestEvaluateRunContext/toJSON"
go-github-com-docker-go-connections "TestEvaluateRunContext/toJson"
go-github-com-gobwas-glob "TestGetGitHubContext"
go-github-com-go-git-go-billy-v5 "TestMaskValues"
go-github-com-go-git-go-git-v5 "TestRunActionInputs"
go-github-com-golang-jwt-jwt-v5 "TestRunDifferentArchitecture"
go-github-com-imdario-mergo "TestRunEvent"
go-github-com-joho-godotenv "TestRunEventHostEnvironment"
go-github-com-julienschmidt-httprouter "TestRunEventPullRequest"
go-github-com-kballard-go-shellquote "TestRunEventSecrets"
go-github-com-masterminds-semver "TestRunMatrixWithUserDefinedInclusions"
go-github-com-mattn-go-isatty "TestRunSkipped"
go-github-com-moby-patternmatcher "TestRunWithService"
go-github-com-opencontainers-image-spec "TestSetupEnv"
go-github-com-opencontainers-selinux "TestStepActionRemotePreThroughActionToken")
go-github-com-pkg-errors "|"))
go-github-com-rhysd-actionlint #:phases
go-github-com-sabhiram-go-gitignore #~(modify-phases %standard-phases
go-github-com-sirupsen-logrus ;; The buildkit dependency tree is *massive* and the only thing
go-github-com-spf13-cobra ;; that's used is the dockerignore module, which is just an alias to
go-github-com-spf13-pflag ;; github.com/moby/patternmatcher which this library already depends
go-github-com-stretchr-testify ;; on!
go-github-com-timshannon-bolthold (add-after 'unpack 'fix-dockerignore
go-go-etcd-io-bbolt (lambda _
go-golang-org-x-term (substitute* "src/github.com/nektos/act/pkg/container/docker_build.go"
go-google-golang-org-protobuf (("\"github.com/moby/buildkit/frontend/dockerfile/dockerignore\"")
go-gopkg-in-yaml-v3 "dockerignore \"github.com/moby/patternmatcher/ignorefile\"")))))))
go-gotest-tools-v3)) (native-inputs
(list go-github-com-go-git-go-billy-v5
go-github-com-stretchr-testify
go-gotest-tools-v3))
(propagated-inputs
(list go-dario-cat-mergo
go-github-com-adrg-xdg
go-github-com-alecaivazis-survey-v2
go-github-com-andreaskoch-go-fswatch
go-github-com-creack-pty
go-github-com-distribution-reference
go-github-com-docker-cli
go-github-com-docker-distribution
go-github-com-docker-docker
go-github-com-docker-go-connections
go-github-com-go-git-go-git-v5
go-github-com-gobwas-glob
go-github-com-golang-jwt-jwt-v5
go-github-com-imdario-mergo
go-github-com-joho-godotenv
go-github-com-julienschmidt-httprouter
go-github-com-kballard-go-shellquote
go-github-com-masterminds-semver
go-github-com-mattn-go-isatty
go-github-com-moby-patternmatcher
go-github-com-opencontainers-image-spec
go-github-com-opencontainers-selinux
go-github-com-pkg-errors
go-github-com-rhysd-actionlint
go-github-com-sabhiram-go-gitignore
go-github-com-sirupsen-logrus
go-github-com-spf13-cobra
go-github-com-spf13-pflag
go-github-com-timshannon-bolthold
go-go-etcd-io-bbolt
go-golang-org-x-term
go-google-golang-org-protobuf
go-gopkg-in-yaml-v3))
(home-page "https://github.com/nektos/act") (home-page "https://github.com/nektos/act")
(synopsis "Run GitHub Actions locally") (synopsis "Run GitHub Actions locally")
(description (description