※GitHub actionsに「workflow_dispatch」が追加されたので、手動でのテストはできるようになった
記事:
現象:
解決:
mkdir -p /tmp/act-artifacts act --artifact-server-path /tmp/act-artifacts
記事:
記事:
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash act --version act version 0.2.74 # ~/bin/act にインストールされた which act /home/user1/bin/act # dockerを起動 sudo service docker start
git clone git@github.com:cplee/github-actions-demo.git cd github-actions-demo/ # 初回 docker imageのダウンロード選択。Medium (500MB)が推奨 on for additional information about file structure) [Use arrows to move, type to filter, ? for more help] Large > Medium ... [CI/test] ✅ Success - Complete job [CI/test] 🏁 Job succeeded
act -n --container-architecture linux/amd64
act -W .github/workflows/workflow.yml
act -j build --container-architecture linux/amd64
act -s GITHUB_TOKEN="$(gh auth token)"
act -P ubuntu-latest=catthehacker/ubuntu:act-latest # -self-hosted act -P ubuntu-latest=-self-hosted act -P windows-latest=-self-hosted act -P macos-latest=-self-hosted