Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,33 @@ tests_add_filter( 'muplugins_loaded', function () {
require '/wp-phpunit/includes/bootstrap.php';
```

## Continuous Integration with Github Actions

For Github Actions, you can use a workflow such as:


```yaml
name: Test

on:
push:
branches: [ master ]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: docker run --rm -v $PWD:/code --entrypoint='' humanmade/plugin-tester composer install

- name: Run tests
run: docker run --rm -v $PWD:/code humanmade/plugin-tester
```

## Continuous Integration with Travis

For Travis, the following minimal configuration will get your tests running:
Expand Down
Loading