Skip to content

Commit

Permalink
add go test usage to readme (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon authored Jul 30, 2024
1 parent 9e09a10 commit 8134a74
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ go-change-delta is a tool to detect the blast radius of changes in a Go-based re
To install go-change-delta, you can use go install:

``` bash
go install https://github.com/tateexon/go-change-delta@latest
go install github.com/tateexon/go-change-delta@latest
```

## Usage
Expand All @@ -37,6 +37,14 @@ Run go-change-delta with the following flags:

### Example

With go test:

```bash
go test $(go-change-delta -b=origin/main -l=0)
```

This command checks all the go packages between your current branch and origin/main that are affected and runs their tests.

```bash
go-change-delta -b main -p ./my-subproject -e "vendor,third_party" -l 3 -t false
```
Expand All @@ -49,4 +57,4 @@ Contributions are welcome! Feel free to open an issue or submit a pull request.
# TODO:

- Setup and add CI
- Add a github action to make using this easier in other CIs
- Add a github action to make using this easier in other CIs

0 comments on commit 8134a74

Please sign in to comment.