AdminTurnedDevOps / goexample

goexample
1 stars 1 forks source link

Error using act tool for test #1

Open carlosal1015 opened 4 years ago

carlosal1015 commented 4 years ago

Hello @AdminTurnedDevOps, I would like to run the action using the tool act in my local machine, but I found this similar issue. Could you test if works for you?

https://github.com/manoelcampos/asciidoctor-ghpages-action/issues/5

[Go/Build] 🚀  Start image=node:12.6-buster-slim
[Go/Build]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Go/Build]   🐳  docker cp src=/tmp/goexample/. dst=/github/workspace
[Go/Build] ⭐  Run Set up Go 1.x
[Go/Build]   ☁  git clone 'https://github.com/actions/setup-go' # ref=v2
[Go/Build]   🐳  docker cp src=/home/carlosal1015/.cache/act/actions-setup-go@v2 dst=/actions/
| Setup go stable version spec ^1.13
[Go/Build]   💬  ::debug::isExplicit: 
[Go/Build]   💬  ::debug::explicit? false
[Go/Build]   💬  ::debug::evaluating 0 versions
[Go/Build]   💬  ::debug::match not found
| Attempting to download ^1.13...
[Go/Build]   💬  ::debug::set auth
| matching ^1.13...
[Go/Build]   💬  ::debug::check 1.15.3 satisfies ^1.13
[Go/Build]   💬  ::debug::x64===x64 && darwin===linux
[Go/Build]   💬  ::debug::x64===x64 && linux===linux
[Go/Build]   💬  ::debug::matched 1.15.3
| Acquiring 1.15.3 from https://github.com/actions/go-versions/releases/download/1.15.3-308043678/go-1.15.3-linux-x64.tar.gz
[Go/Build]   💬  ::debug::Downloading https://github.com/actions/go-versions/releases/download/1.15.3-308043678/go-1.15.3-linux-x64.tar.gz
[Go/Build]   💬  ::debug::Destination /tmp/ab1772f9-3746-4dd8-9af3-ebe324781e38
[Go/Build]   💬  ::debug::set auth
[Go/Build]   💬  ::debug::download complete
| Extracting Go...
[Go/Build]   💬  ::debug::Checking tar --version
[Go/Build]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/900a9da8-4699-4c58-8692-92e213bd3941 -f /tmp/ab1772f9-3746-4dd8-9af3-ebe324781e38
| Successfully extracted go to /tmp/900a9da8-4699-4c58-8692-92e213bd3941
| Adding to the cache ...
[Go/Build]   💬  ::debug::Caching tool go 1.15.3 x64
[Go/Build]   💬  ::debug::source dir: /tmp/900a9da8-4699-4c58-8692-92e213bd3941
[Go/Build]   💬  ::debug::destination /opt/hostedtoolcache/go/1.15.3/x64
[Go/Build]   💬  ::debug::finished caching tool
| Successfully cached go to /opt/hostedtoolcache/go/1.15.3/x64
[Go/Build]   ⚙  ::set-env:: GOROOT=/opt/hostedtoolcache/go/1.15.3/x64
[Go/Build]   ⚙  ::add-path:: /opt/hostedtoolcache/go/1.15.3/x64/bin
| Added go to the path
[Go/Build]   💬  ::debug::which go :/opt/hostedtoolcache/go/1.15.3/x64/bin/go:
[Go/Build]   💬  ::debug::go env GOPATH :/github/home/go:
[Go/Build]   💬  ::debug::creating /github/home/go
[Go/Build]   💬  ::debug::creating /github/home/go/bin
[Go/Build]   ⚙  ::add-path:: /github/home/go/bin
[Go/Build]   💬  ::debug::add bin true
| Successfully setup go version ^1.13
[Go/Build]   ❓  ##[add-matcher]/actions/actions-setup-go@v2/matchers.json
| go version go1.15.3 linux/amd64
| 
[Go/Build]   ❓  ::group::go env
| GO111MODULE=""
| GOARCH="amd64"
| GOBIN=""
| GOCACHE="/github/home/.cache/go-build"
| GOENV="/github/home/.config/go/env"
| GOEXE=""
| GOFLAGS=""
| GOHOSTARCH="amd64"
| GOHOSTOS="linux"
| GOINSECURE=""
| GOMODCACHE="/github/home/go/pkg/mod"
| GONOPROXY=""
| GONOSUMDB=""
| GOOS="linux"
| GOPATH="/github/home/go"
| GOPRIVATE=""
| GOPROXY="https://proxy.golang.org,direct"
| GOROOT="/opt/hostedtoolcache/go/1.15.3/x64"
| GOSUMDB="sum.golang.org"
| GOTMPDIR=""
| GOTOOLDIR="/opt/hostedtoolcache/go/1.15.3/x64/pkg/tool/linux_amd64"
| GCCGO="gccgo"
| AR="ar"
| CC="gcc"
| CXX="g++"
| CGO_ENABLED="1"
| GOMOD=""
| CGO_CFLAGS="-g -O2"
| CGO_CPPFLAGS=""
| CGO_CXXFLAGS="-g -O2"
| CGO_FFLAGS="-g -O2"
| CGO_LDFLAGS="-g -O2"
| PKG_CONFIG="pkg-config"
| GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build893336150=/tmp/go-build -gno-record-gcc-switches"
| 
[Go/Build]   ❓  ::endgroup::
[Go/Build]   ✅  Success - Set up Go 1.x
[Go/Build] ⭐  Run Check out code into the Go module directory
[Go/Build]   ✅  Success - Check out code into the Go module directory
[Go/Build] ⭐  Run Go example
[Go/Build]   ☁  git clone 'https://github.com/AdminTurnedDevOps/goexample' # ref=v1
[Go/Build]   ❌  Failure - Go example
Error: The runs.using key in action.yml must be one of: [docker node12], got composite

Thank you.

AdminTurnedDevOps commented 3 years ago

Hey @carlosal1015,

I hope all is well! I apologize for the late reply here. It looks like the issue is that the act tool to run GitHub Actions locally is not compatible with Compose actions.

Error: The runs.using key in action.yml must be one of: [docker node12], got composite

If you'd like to use Composite Actions in the act tool, I'd recommend opening up a feature request with the maintainer(s) to add this feature.