-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
283741d
commit 1a9b1fe
Showing
5 changed files
with
69 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,45 @@ | ||
# codelimit-action | ||
# Code Limit GitHub Action | ||
|
||
<div align="center"> | ||
|
||
![Logo](docs/logo.png) | ||
|
||
</div> | ||
|
||
<div align="center"> | ||
|
||
*Your Refactoring Alarm 🔔 As a GitHub Action* | ||
|
||
</div> | ||
|
||
<div align="center"> | ||
|
||
[![main](https://github.com/getcodelimit/codelimit-action/actions/workflows/main.yml/badge.svg)](https://github.com/getcodelimit/codelimit-action/actions/workflows/main.yml) | ||
[![Checked with Code Limit](https://github.com/getcodelimit/codelimit-action/blob/_codelimit_reports/main/badge.svg)](https://github.com/getcodelimit/codelimit-action/blob/_codelimit_reports/main/codelimit.md) | ||
|
||
To run Code Limit on every push and before every merge to main, append it to your GH Action workflow: | ||
</div> | ||
|
||
To run Code Limit on every push and before every merge to main, append it to | ||
your GH Action workflow: | ||
|
||
```yaml | ||
name: 'main' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout sources' | ||
uses: actions/checkout@v4 | ||
- name: 'Run Code Limit' | ||
uses: getcodelimit/codelimit-action@main | ||
``` | ||
## Upload report | ||
|
||
To upload the report to Code Limit, add the following step to your workflow: | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout sources' | ||
uses: actions/checkout@v4 | ||
|
||
```yaml | ||
- name: 'Run Code Limit' | ||
uses: getcodelimit/codelimit-action@main | ||
with: | ||
upload: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: 'Run Code Limit' | ||
uses: getcodelimit/codelimit-action@main | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters