Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmet committed Jan 23, 2024
1 parent 0788def commit cba36b4
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# go-deadcode-checker
# deadcode Checker GitHub Action

A Github Action for checking unused code fragments in Golang projects.

## Usage

Create a new GitHub Actions workflow in your project, e.g. at [.github/workflows/deadcode-check.yml](.github/workflows/deadcode-check.yml)

```yaml
name: Deadcode Check

on:
push:
pull_request:
branches: 'main'

jobs:
commit-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test deadcode
uses: ahmet/go-deadcode-checker@v1
with:
directory: .
```
## Optional Inputs
### `directory`

- **Description**: path to run checks on.
- Default: '.'

## Versioning

Versioning follows [Semantic Versioning](https://semver.org/).

## Have question or feedback?

To provide feedback (requesting a feature or reporting a bug) please post to [issues](https://github.com/ahmet/go-deadcode-checker/issues).

0 comments on commit cba36b4

Please sign in to comment.