mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
bada938227
commit
de2c6771e9
1 changed files with 84 additions and 47 deletions
|
@ -234,30 +234,69 @@ 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"
|
||||||
|
"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
|
(add-after 'unpack 'fix-dockerignore
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "src/github.com/nektos/act/pkg/container/docker_build.go"
|
(substitute* "src/github.com/nektos/act/pkg/container/docker_build.go"
|
||||||
(("\"github.com/moby/buildkit/frontend/dockerfile/dockerignore\"")
|
(("\"github.com/moby/buildkit/frontend/dockerfile/dockerignore\"")
|
||||||
"dockerignore \"github.com/moby/patternmatcher/ignorefile\"")))))))
|
"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-alecaivazis-survey-v2
|
||||||
go-github-com-andreaskoch-go-fswatch
|
go-github-com-andreaskoch-go-fswatch
|
||||||
go-github-com-creack-pty
|
go-github-com-creack-pty
|
||||||
;; go-dario-cat-mergo
|
|
||||||
go-github-com-distribution-reference
|
go-github-com-distribution-reference
|
||||||
go-github-com-docker-cli
|
go-github-com-docker-cli
|
||||||
go-github-com-docker-distribution
|
go-github-com-docker-distribution
|
||||||
go-github-com-docker-docker
|
go-github-com-docker-docker
|
||||||
go-github-com-docker-go-connections
|
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-go-git-go-git-v5
|
||||||
|
go-github-com-gobwas-glob
|
||||||
go-github-com-golang-jwt-jwt-v5
|
go-github-com-golang-jwt-jwt-v5
|
||||||
go-github-com-imdario-mergo
|
go-github-com-imdario-mergo
|
||||||
go-github-com-joho-godotenv
|
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-sirupsen-logrus
|
||||||
go-github-com-spf13-cobra
|
go-github-com-spf13-cobra
|
||||||
go-github-com-spf13-pflag
|
go-github-com-spf13-pflag
|
||||||
go-github-com-stretchr-testify
|
|
||||||
go-github-com-timshannon-bolthold
|
go-github-com-timshannon-bolthold
|
||||||
go-go-etcd-io-bbolt
|
go-go-etcd-io-bbolt
|
||||||
go-golang-org-x-term
|
go-golang-org-x-term
|
||||||
go-google-golang-org-protobuf
|
go-google-golang-org-protobuf
|
||||||
go-gopkg-in-yaml-v3
|
go-gopkg-in-yaml-v3))
|
||||||
go-gotest-tools-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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue