Skip to content

Commit

Permalink
docs: remove Travis from README; make running act locally easier
Browse files Browse the repository at this point in the history
  • Loading branch information
gogowitsch committed Nov 7, 2021
1 parent ad192af commit e23ff03
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e23ff03

Please sign in to comment.