parent
87d22feb28
commit
99ee409063
67
README.md
67
README.md
@ -1,3 +1,66 @@
|
||||
# Rubocop GitHub Action
|
||||

|
||||
|
||||
TODO
|
||||
# Rubocop Linter Action
|
||||
|
||||

|
||||
|
||||
GitHub Action to run Rubocop against your code.
|
||||
|
||||
## Usage
|
||||
|
||||
Add the following to your GitHub action workflow:
|
||||
|
||||
```yaml
|
||||
- name: Rubocop Linter
|
||||
uses: andrewmcodes/rubocop-linter-action@0.1.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
## Example Workflow
|
||||
|
||||
```yaml
|
||||
name: Ruby
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Ruby 2.6
|
||||
uses: actions/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.6.x
|
||||
- name: add PostgreSQL dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y postgresql-client libpq-dev
|
||||
- name: Rubocop Linter
|
||||
uses: andrewmcodes/rubocop-linter-action@0.1.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
|
||||
## Contributing
|
||||
|
||||
[Contributing Guide](/CONTRIBUTING.md)
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
[Code of Conduct](/CODE_OF_CONDUCT.md)
|
||||
|
||||
## License
|
||||
|
||||
[MIT](/LICENSE.md)
|
||||
|
||||
## Recognition
|
||||
|
||||
This project was originally forked from [gimenete/rubocop-action](https://github.com/gimenete/rubocop-action). Many thanks to [Alberto Gimeno](https://github.com/gimenete) for creating this project.
|
||||
|
||||
BIN
screenshots/rubocop-linter-action.png
Normal file
BIN
screenshots/rubocop-linter-action.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
screenshots/ui-example.png
Normal file
BIN
screenshots/ui-example.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
Reference in New Issue
Block a user