Giter VIP home page Giter VIP logo

github-actions-demo's Introduction

Overview

Simple Node.js application to demonstrate the use of GitHub Actions

Look Ma, no Makefile!

All the tasks necessary for testing, building and deploying this code is already defined in .github/workflows/ so why would you want to also create a Makefile for local development? Now you can use act to run the actions locally!

Try these:

  • act -j test - run the tests
  • act - run the the entire pipeline
  • act -l - view the execution graph

github-actions-demo's People

Contributors

cplee avatar dependabot[bot] avatar drpaneas avatar jchannon avatar testpersonal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-actions-demo's Issues

starting container process caused: exec: "bash": executable file not found in $PATH: unknown

I have cloned the repo, npm install and then run:

act

[CI/test] ๐Ÿš€  Start image=node:12.6-buster-slim
[CI/test]   ๐Ÿณ  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/test]   ๐Ÿณ  docker cp src=/home/luigi/projects/attendance-page/github-actions-demo/. dst=/github/workspace
[CI/test] โญ  Run actions/checkout@v2
[CI/test]   โœ…  Success - actions/checkout@v2
[CI/test] โญ  Run actions/setup-node@v1
[CI/test]   โ˜  git clone 'https://github.com/actions/setup-node' # ref=v1
[CI/test]   ๐Ÿณ  docker cp src=/home/luigi/.cache/act/actions-setup-node@v1 dst=/actions/
[CI/test]   ๐Ÿ’ฌ  ::debug::isExplicit: 
[CI/test]   ๐Ÿ’ฌ  ::debug::explicit? false
[CI/test]   ๐Ÿ’ฌ  ::debug::evaluating 0 versions
[CI/test]   ๐Ÿ’ฌ  ::debug::match not found
[CI/test]   ๐Ÿ’ฌ  ::debug::evaluating 434 versions
[CI/test]   ๐Ÿ’ฌ  ::debug::matched: v10.23.1
[CI/test]   ๐Ÿ’ฌ  ::debug::isExplicit: 10.23.1
[CI/test]   ๐Ÿ’ฌ  ::debug::explicit? true
[CI/test]   ๐Ÿ’ฌ  ::debug::checking cache: /opt/hostedtoolcache/node/10.23.1/x64
[CI/test]   ๐Ÿ’ฌ  ::debug::not found
[CI/test]   ๐Ÿ’ฌ  ::debug::Downloading https://nodejs.org/dist/v10.23.1/node-v10.23.1-linux-x64.tar.gz
[CI/test]   ๐Ÿ’ฌ  ::debug::Destination /tmp/9f09aeb9-2af5-467e-be2d-03c00d9b2af1
[CI/test]   ๐Ÿ’ฌ  ::debug::download complete
[CI/test]   ๐Ÿ’ฌ  ::debug::Checking tar --version
[CI/test]   ๐Ÿ’ฌ  ::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/d318e968-a7ec-4568-870f-4fcf6c8d2261 -f /tmp/9f09aeb9-2af5-467e-be2d-03c00d9b2af1
[CI/test]   ๐Ÿ’ฌ  ::debug::Caching tool node 10.23.1 x64
[CI/test]   ๐Ÿ’ฌ  ::debug::source dir: /tmp/d318e968-a7ec-4568-870f-4fcf6c8d2261/node-v10.23.1-linux-x64
[CI/test]   ๐Ÿ’ฌ  ::debug::destination /opt/hostedtoolcache/node/10.23.1/x64
[CI/test]   ๐Ÿ’ฌ  ::debug::finished caching tool
[CI/test]   โš™  ::add-path:: /opt/hostedtoolcache/node/10.23.1/x64/bin
| [command]/opt/hostedtoolcache/node/10.23.1/x64/bin/node --version
| v10.23.1
| [command]/opt/hostedtoolcache/node/10.23.1/x64/bin/npm --version
| 6.14.10
[CI/test]   โ“  ##[add-matcher]/actions/actions-setup-node@v1/.github/tsc.json
[CI/test]   โ“  ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-stylish.json
[CI/test]   โ“  ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-compact.json
[CI/test]   โœ…  Success - actions/setup-node@v1
[CI/test] โญ  Run npm install
| OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "bash": executable file not found in $PATH: unknown
[CI/test]   โŒ  Failure - npm install
Error: exit with `FAILURE`: 126

Fatal error: stack overflow

I cloned the repo locally and tried to run it. Docker is installed and running.

I have the following error when running act or act -j test. Am I doing something wrong?

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020701330 stack=[0xc020700000, 0xc040700000]
fatal error: stack overflow
       
runtime stack:
runtime.throw({0xe496f5, 0x1409ec0})
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/panic.go:1198 +0x76  
runtime.newstack()
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/stack.go:1088 +0x5cc 
runtime.morestack()
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/asm_amd64.s:461 +0x93

goroutine 1 [running]:
runtime.rawstringtmp(0xc020701430, 0x4)
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/string.go:126 +0x85 fp=0xc020701340 sp=0xc020701338 pc=0x64e0c5
runtime.concatstrings(0xc0207013e8, {0xc0207013d8, 0x2, 0x200000003})
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/string.go:50 +0xc5 fp=0xc0207013b8 sp=0xc020701340 pc=0x64d9a5
runtime.concatstring2(0xc000000002, {0xc000255548, 0xc00005e000}, {0xf470c8, 0x661194})
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/string.go:59 +0x54 fp=0xc020701408 sp=0xc0207013b8 pc=0x64dbd4
syscall.UTF16FromString({0xc000255548, 0x30})
        /opt/hostedtoolcache/go/1.17.7/x64/src/syscall/syscall_windows.go:47 +0x85 fp=0xc0207014e0 sp=0xc020701408 pc=0x677de5
syscall.UTF16PtrFromString(...)
        /opt/hostedtoolcache/go/1.17.7/x64/src/syscall/syscall_windows.go:97
os.stat({0xe42087, 0x4}, {0xc000255548, 0x3}, 0x3)
        /opt/hostedtoolcache/go/1.17.7/x64/src/os/stat_windows.go:53 +0xcb fp=0xc020701810 sp=0xc0207014e0 pc=0x6bbacb
os.statNolog(...)
        /opt/hostedtoolcache/go/1.17.7/x64/src/os/stat_windows.go:106
os.Stat({0xc000255548, 0x3})
        /opt/hostedtoolcache/go/1.17.7/x64/src/os/stat.go:13 +0x45 fp=0xc020701848 sp=0xc020701810 pc=0x6bb6a5
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025552d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:204 +0x3e fp=0xc0207018c8 sp=0xc020701848 pc=0xa5d65e
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002554dd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701948 sp=0xc0207018c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025548d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207019c8 sp=0xc020701948 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025543d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701a48 sp=0xc0207019c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002553ed, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701ac8 sp=0xc020701a48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025539d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701b48 sp=0xc020701ac8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025534d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701bc8 sp=0xc020701b48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002552fd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701c48 sp=0xc020701bc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002552ad, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701cc8 sp=0xc020701c48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025525d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701d48 sp=0xc020701cc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025520d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701dc8 sp=0xc020701d48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002551bd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701e48 sp=0xc020701dc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025516d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701ec8 sp=0xc020701e48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025511d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701f48 sp=0xc020701ec8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002550cd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020701fc8 sp=0xc020701f48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025507d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702048 sp=0xc020701fc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025502d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207020c8 sp=0xc020702048 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254fdd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702148 sp=0xc0207020c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254f8d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207021c8 sp=0xc020702148 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254f3d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702248 sp=0xc0207021c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254eed, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207022c8 sp=0xc020702248 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254e9d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702348 sp=0xc0207022c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254e4d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207023c8 sp=0xc020702348 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254dfd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702448 sp=0xc0207023c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254dad, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207024c8 sp=0xc020702448 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254d5d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702548 sp=0xc0207024c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254d0d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207025c8 sp=0xc020702548 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254cbd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702648 sp=0xc0207025c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254c6d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207026c8 sp=0xc020702648 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254c1d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702748 sp=0xc0207026c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254bcd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207027c8 sp=0xc020702748 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254b7d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702848 sp=0xc0207027c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254b2d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207028c8 sp=0xc020702848 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254add, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702948 sp=0xc0207028c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254a8d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207029c8 sp=0xc020702948 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000254a3d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702a48 sp=0xc0207029c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002549ed, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702ac8 sp=0xc020702a48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025499d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702b48 sp=0xc020702ac8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025494d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702bc8 sp=0xc020702b48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002548fd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702c48 sp=0xc020702bc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002548ad, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702cc8 sp=0xc020702c48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025485d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702d48 sp=0xc020702cc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025480d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702dc8 sp=0xc020702d48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002547bd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702e48 sp=0xc020702dc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025476d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702ec8 sp=0xc020702e48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025471d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702f48 sp=0xc020702ec8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002546cd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020702fc8 sp=0xc020702f48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025467d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703048 sp=0xc020702fc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025462d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207030c8 sp=0xc020703048 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002545dd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703148 sp=0xc0207030c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025458d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207031c8 sp=0xc020703148 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025453d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703248 sp=0xc0207031c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002544ed, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207032c8 sp=0xc020703248 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025449d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703348 sp=0xc0207032c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025444d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207033c8 sp=0xc020703348 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002543fd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703448 sp=0xc0207033c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002543ad, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207034c8 sp=0xc020703448 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025435d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703548 sp=0xc0207034c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025430d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207035c8 sp=0xc020703548 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002542bd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703648 sp=0xc0207035c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025426d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207036c8 sp=0xc020703648 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025421d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703748 sp=0xc0207036c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002541cd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207037c8 sp=0xc020703748 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025417d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703848 sp=0xc0207037c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025412d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207038c8 sp=0xc020703848 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002540dd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703948 sp=0xc0207038c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025408d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207039c8 sp=0xc020703948 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00025403d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703a48 sp=0xc0207039c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221fed, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703ac8 sp=0xc020703a48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221f9d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703b48 sp=0xc020703ac8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221f4d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703bc8 sp=0xc020703b48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221efd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703c48 sp=0xc020703bc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221ead, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703cc8 sp=0xc020703c48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221e5d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703d48 sp=0xc020703cc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221e0d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703dc8 sp=0xc020703d48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221dbd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703e48 sp=0xc020703dc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221d6d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703ec8 sp=0xc020703e48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221d1d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703f48 sp=0xc020703ec8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221ccd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020703fc8 sp=0xc020703f48 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221c7d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704048 sp=0xc020703fc8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221c2d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207040c8 sp=0xc020704048 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221bdd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704148 sp=0xc0207040c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221b8d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207041c8 sp=0xc020704148 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221b3d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704248 sp=0xc0207041c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221aed, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207042c8 sp=0xc020704248 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221a9d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704348 sp=0xc0207042c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc000221a4d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207043c8 sp=0xc020704348 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002219fd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704448 sp=0xc0207043c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002219ad, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207044c8 sp=0xc020704448 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00022195d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704548 sp=0xc0207044c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00022190d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207045c8 sp=0xc020704548 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc0002218bd, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704648 sp=0xc0207045c8 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00022186d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc0207046c8 sp=0xc020704648 pc=0xa5d7bf
github.com/nektos/act/pkg/common.findGitDirectory({0xc00022181d, 0x3})
        /home/runner/work/act/act/pkg/common/git.go:224 +0x19f fp=0xc020704748 sp=0xc0207046c8 pc=0xa5d7bf

goroutine 6 [syscall, 2 minutes]:
os/signal.signal_recv()
        /opt/hostedtoolcache/go/1.17.7/x64/src/runtime/sigqueue.go:169 +0x98
os/signal.loop()
        /opt/hostedtoolcache/go/1.17.7/x64/src/os/signal/signal_unix.go:24 +0x19
created by os/signal.Notify.func1.1
        /opt/hostedtoolcache/go/1.17.7/x64/src/os/signal/signal.go:151 +0x2c

goroutine 7 [select, 2 minutes]:
main.main.func2()
        /home/runner/work/act/act/main.go:25 +0x77
created by main.main
        /home/runner/work/act/act/main.go:24 +0x154

act wont run any Github action

Hi,

I've installed act v0.2.20 through homebrew with brew install act

When I ran act for the first time I choose the 'medium' image, this is what I have in my ~/.actrc file

-P ubuntu-latest=catthehacker/ubuntu:act-latest
-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
ubuntu-16.04=catthehacker/ubuntu:act-16.04

I've tried to run act on my project, with no luck. I have 3 workflows
image

When I run act -l at the root of the project I get this:
image

I've cloned the demo repo and tried to run act and nothing happens.

Cloning the repo and running act

I am just starting on trying to use act. However on cloning the repo and running act on a windows machine I get the following error
Cannot find module '/github/workspace/\actions\actions-setup-node@v1\dist\index.js'

Full error log here

[CI/test]   ๏ฟฝ  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/test]   ๏ฟฝ  docker cp src=C:\code\github-actions-demo/. dst=\github\workspace
[CI/test] โญ  Run actions/checkout@v2
[CI/test]   โœ…  Success - actions/checkout@v2
[CI/test] โญ  Run actions/setup-node@v1
[CI/test]   โ˜  git clone 'https://github.com/actions/setup-node' # ref=v1
[CI/test]   ๏ฟฝ  docker cp src=C:\Users\vikram.nadig\.cache\act/actions-setup-node@v1 dst=/actions\
| internal/modules/cjs/loader.js:628
|     throw err;
|     ^
|
| Error: Cannot find module '/github/workspace/\actions\actions-setup-node@v1\dist\index.js'
|     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
|     at Function.Module._load (internal/modules/cjs/loader.js:527:27)
|     at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
|     at internal/main/run_main_module.js:17:11 {
|   code: 'MODULE_NOT_FOUND',
|   requireStack: []
| }
[CI/test]   โŒ  Failure - actions/setup-node@v1
Error: exit with `FAILURE`: 1

Is there something i am missing ?

Input required and not supplied: token

Running the demo:

[CI/test] โญ  Run actions/checkout@v2
[CI/test]   โ˜  git clone 'https://github.com/actions/checkout' # ref=v2
[CI/test]   ๐Ÿณ  docker cp src=/Users/kwent/.cache/act/actions-checkout@v2/ dst=/Users/kwent/Projects/perso/github-actions-demo/_actions/actions-checkout@v2/
[CI/test]   โ“  ::save-state name=isPost,::true
[CI/test]   ๐Ÿ’ฌ  ::debug::GITHUB_WORKSPACE = '/Users/kwent/Projects/perso/github-actions-demo'
[CI/test]   ๐Ÿ’ฌ  ::debug::qualified repository = 'cplee/github-actions-demo'
[CI/test]   ๐Ÿ’ฌ  ::debug::ref = 'refs/heads/master'
[CI/test]   ๐Ÿ’ฌ  ::debug::commit = '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
[CI/test]   ๐Ÿ’ฌ  ::debug::clean = true
[CI/test]   ๐Ÿ’ฌ  ::debug::fetch depth = 1
[CI/test]   ๐Ÿ’ฌ  ::debug::lfs = false
[CI/test]   ๐Ÿ’ฌ  ::debug::submodules = false
[CI/test]   ๐Ÿ’ฌ  ::debug::recursive submodules = false
[CI/test]   โ—  ::error::Input required and not supplied: token
[CI/test]   โŒ  Failure - actions/checkout@v2
Error: exit with `FAILURE`: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.