-
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
e79df30
commit 8ba3151
Showing
4 changed files
with
247 additions
and
137 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 +1,34 @@ | ||
# codelimit-action | ||
# codelimit-action | ||
|
||
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: | ||
```yaml | ||
- name: 'Run Code Limit' | ||
uses: getcodelimit/codelimit-action@main | ||
with: | ||
upload: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
``` |
Oops, something went wrong.