From f2b0aecd12d3da58a29505533908932b3128ede5 Mon Sep 17 00:00:00 2001 From: Fonata Date: Sun, 7 Nov 2021 13:34:13 +0100 Subject: [PATCH] docs: remove Travis from README; make running act locally easier --- Makefile | 10 ++++++++++ README.md | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) 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