diff --git a/Makefile b/Makefile index 1c9fcce..3d398cf 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,16 @@ phpunit-dep: # - Docker: https://docker.com # - act: https://github.com/nektos/act local-ci: +ifeq (, $(shell which act)) +define ACT_ERROR +Consider running the following to install 'act': + + curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash + +The dependency 'act' was not found +endef +$(error ${ACT_ERROR}) +endif act -P ubuntu-latest=shivammathur/node:latest -W .github/workflows/ci.yml .SILENT: diff --git a/README.md b/README.md index 38f904b..bc47d9f 100644 --- a/README.md +++ b/README.md @@ -165,8 +165,12 @@ composer install composer run test ```` -When pushing code to GitHub, tests will be executed using Travis CI. The relevant configuration is in the -file `.travis.yml`. +When pushing code to GitHub, tests will be executed using GitHub Actions. The relevant configuration is in the +file `.github/workflows/ci.yml`. To run the `test` action locally, you can execute the following command: + +````bash +make local-ci +```` ## Security