Skip to content

Commit

Permalink
Merge pull request #116 from Nyholm/patch-1
Browse files Browse the repository at this point in the history
Added docs how to use Github actions and docker
  • Loading branch information
Ocramius authored Feb 4, 2019
2 parents 459e15b + 5f9c005 commit 991bf55
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ of a PHP library.
composer require --dev roave/backward-compatibility-check
```

### Install with Docker

You can also use Docker to run `roave-backward-compatibility-check`:

```bash
docker run --rm -v `pwd`:/app nyholm/roave-bc-check
```

## Usage

### Adding to a continuous integration pipeline
Expand All @@ -35,6 +43,24 @@ the build to fail.
*NOTE:* detecting the base version only works if you have git tags in
the SemVer-compliant `x.y.z` format, such as `1.2.3`.

#### Github action

You can use it as a Github Action like this:

_.github/main.workflow_
```
workflow "Main" {
on = "push"
resolves = ["Roave BC Check"]
}
action "Roave BC Check" {
uses = "docker://nyholm/roave-bc-check-ga"
secrets = ["GITHUB_TOKEN"]
args = ""
}
```

### Running manually

To generate additional documentation for changelogs:
Expand Down

0 comments on commit 991bf55

Please sign in to comment.