Just started with Github Actions and I’ve got some issues getting it to work.
The workflow that I created:
name: Pull request on: pull_request jobs: test-unit: runs-on: ubuntu-latest steps: -uses: actions/checkout@develop -name: Docker compose run: docker-compose up -d
I use https://github.com/nektos/act to verify the changes locally on my MackBook Pro.
So, I run
act pull_request and the result that I get:
[Pull request/test-unit] ⭐ Run actions/checkout@develop [Pull request/test-unit] ✅ Success - actions/checkout@develop [Pull request/test-unit] ⭐ Run Docker compose [Pull request/test-unit] 🐳 docker pull ubuntu:18.04 [Pull request/test-unit] 🐳 docker run image=ubuntu:18.04 entrypoint=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-299945376"] cmd= | /github/home/.temp-script-299945376: line 2: docker-compose: command not found [Pull request/test-unit] ❌ Failure - Docker compose Error: exit with `FAILURE`: 127
So what do I do wrong?
If I check this issue: https://github.community/t5/GitHub-Actions/How-to-use-docker-compose-with-GitHub-Actions/td-p/37824 than it should work like that right?