Closed17
GitHub Actions learn
砂場
install act
左様でござるか...集
docker-compose 入ってない
❯ act
? Please choose the default image you want to use with act:
- Large size image: +20GB Docker image, includes almost all tools used on GitHub Actions (IMPORTANT: currently only ubuntu-18.04 platform is available)
- Medium size image: ~500MB, includes only necessary tools to bootstrap actions and aims to be compatible with all actions
- Micro size image: <200MB, contains only NodeJS required to bootstrap actions, doesn't work with all actions
Default image and other options can be changed manually in ~/.actrc (please refer to https://github.com/nektos/act#configuration for additional information about file structure) Medium
[Test/test] 🚀 Start image=catthehacker/ubuntu:act-20.04
[Test/test] 🐳 docker run image=catthehacker/ubuntu:act-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test/test] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Test/test] 🐳 docker cp src=~/temp/laravel-cloud-run/. dst=/home/sogaoh3/temp/laravel-cloud-run
[Test/test] 🐳 docker exec cmd=[mkdir -p ~/temp/laravel-cloud-run] user=
[Test/test] ⭐ Run Clone
[Test/test] ✅ Success - Clone
[Test/test] ⭐ Run Start docker
[Test/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /home/sogaoh3/temp/laravel-cloud-run/workflow/1] user=
| docker-compose up -d
| make: docker-compose: Command not found
| make: *** [Makefile:19: up] Error 127
[Test/test] ❌ Failure - Start docker
Error: exit with `FAILURE`: 2
you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") マジっすか・・・
❯ act
[Test/test] 🚀 Start image=catthehacker/ubuntu:act-20.04
[Test/test] 🐳 docker run image=catthehacker/ubuntu:act-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test/test] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Test/test] 🐳 docker cp src=~/temp/laravel-cloud-run/. dst=/home/sogaoh3/temp/laravel-cloud-run
[Test/test] 🐳 docker exec cmd=[mkdir -p ~/temp/laravel-cloud-run] user=
[Test/test] ⭐ Run Install docker-compose
[Test/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail ~/temp/laravel-cloud-run/workflow/0] user=
//・・・
[Test/test] ✅ Success - Install docker-compose
[Test/test] ⭐ Run Checkout
[Test/test] ✅ Success - Checkout
[Test/test] ⭐ Run Start
[Test/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail ~/temp/laravel-cloud-run/workflow/2] user=
//・・・
| docker-compose up -d
| ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
| For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
| make[1]: *** [Makefile:19: up] Error 1
| make[1]: Leaving directory '~/temp/laravel-cloud-run/appBase/run'
| make: *** [Makefile:14: upmod] Error 2
[Test/test] ❌ Failure - Start
Error: exit with `FAILURE`: 2
Actions 初回実行してみたら、Makefile で呼んでたコマンドが呼び出せない
docker-compose exec app chmod -R a+w storage
the input device is not a TTY
備忘 : act は docker-compose.yml に version: "3.3"
を指定(せざるを得ない感じ)
情報
だいたい掴めた感じなのでいい味を出したい
- php-cs-fixer で自動 Fix したのを 強制 push
- 強制 push 後に test
あと、composer.lock 同じなら composer install (make vendor) までしたところでキャッシュしたいな・・・
それと完了時の通知。
追加: coverage の Artifact 保存
Slack 通知を入れてみる
refs
高速化に挑んでたら壁に遭遇。
なんスかそれ・・・
[質問] cache の展開先
Discussions に投げた。。。
このスクラップは2022/04/07にクローズされました