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,30 +234,69 @@ using the Git pkt-line format used in various Git operations.")
#:go go-1.23
#:import-path "github.com/nektos/act"
#:embed-files #~(list ".*\\.json")
#:tests? #f ;XXX: one test fails for unknown reasons
#:phases #~(modify-phases %standard-phases
;; The buildkit dependency tree is *massive* and the only
;; thing that's used is the dockerignore module, which is
;; just an alias to github.com/moby/patternmatcher which
;; this library already depends on!
#:test-flags
#~(list "-skip" (string-join
;; Network access is required.
(list "TestArtifactFlow/GHSL-2023-004"
"TestArtifactFlow/upload-and-download"
"TestFindGitRemoteURL"
"TestGitCloneExecutor"
"TestGitFindRef"
"TestHandler_gcCache"
"TestImageExistsLocally"
"TestHandler"
"TestJobExecutor"
;; Running Docker is required.
"TestDocker"
;; Something else...
"TestActionCache"
"TestInterpolate"
"TestRunContext_EvalBool"
"TestDryrunEvent"
"TestEvaluateRunContext/toJSON"
"TestEvaluateRunContext/toJson"
"TestGetGitHubContext"
"TestMaskValues"
"TestRunActionInputs"
"TestRunDifferentArchitecture"
"TestRunEvent"
"TestRunEventHostEnvironment"
"TestRunEventPullRequest"
"TestRunEventSecrets"
"TestRunMatrixWithUserDefinedInclusions"
"TestRunSkipped"
"TestRunWithService"
"TestSetupEnv"
"TestStepActionRemotePreThroughActionToken")
"|"))
#:phases
#~(modify-phases %standard-phases
;; The buildkit dependency tree is *massive* and the only thing
;; that's used is the dockerignore module, which is just an alias to
;; github.com/moby/patternmatcher which this library already depends
;; on!
(add-after 'unpack 'fix-dockerignore
(lambda _
(substitute* "src/github.com/nektos/act/pkg/container/docker_build.go"
(("\"github.com/moby/buildkit/frontend/dockerfile/dockerignore\"")
"dockerignore \"github.com/moby/patternmatcher/ignorefile\"")))))))
(propagated-inputs (list go-github-com-adrg-xdg
(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-dario-cat-mergo
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-gobwas-glob
go-github-com-go-git-go-billy-v5
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
@ -274,13 +313,11 @@ using the Git pkt-line format used in various Git operations.")
go-github-com-sirupsen-logrus
go-github-com-spf13-cobra
go-github-com-spf13-pflag
go-github-com-stretchr-testify
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
go-gotest-tools-v3))
go-gopkg-in-yaml-v3))
(home-page "https://github.com/nektos/act")
(synopsis "Run GitHub Actions locally")
(description