Skip to content

Commit d43127f

Browse files
feat: build for release
1 parent 8abcaf1 commit d43127f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ To use the GitHub Action with Codacy integration:
147147
max-allowed-issues: 2147483647
148148
```
149149

150+
**If you're running a Go client-side tool** you must also set up the Go environment before running the Codacy Analysis CLI GitHub Action. We recommend using the [setup-go GitHub Action](https://github.com/actions/setup-go) for this:
151+
152+
```yaml
153+
- name: set-up go
154+
uses: actions/setup-go@v3
155+
with:
156+
# Go version currently supported by Codacy
157+
go-version: 1.17.13
158+
```
159+
150160
4. Optionally, specify the following parameters to run [**standalone** client-side tools](https://docs.codacy.com/related-tools/local-analysis/client-side-tools/):
151161

152162
```yaml

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ inputs:
3030
parallel:
3131
required: false
3232
description: "Number of tools to run in parallel"
33+
max-tool-memory:
34+
required: false
35+
description: "Maximum of allowed memory for each tool execution"
3336
max-allowed-issues:
3437
required: false
3538
default: "2147483647"
@@ -252,6 +255,7 @@ runs:
252255
$(if [ -n "${{ inputs.output }}" ]; then echo "--output ${{ inputs.output }}"; fi) \
253256
$(if [ -n "${{ inputs.directory }}" ]; then echo "--directory ${{ inputs.directory }}"; fi) \
254257
$(if [ -n "${{ inputs.parallel }}" ]; then echo "--parallel ${{ inputs.parallel }}"; fi) \
258+
$(if [ -n "${{ inputs.max-tool-memory }}" ]; then echo "--max-tool-memory ${{ inputs.max-tool-memory }}"; fi) \
255259
$(if [ -n "${{ inputs.max-allowed-issues }}" ]; then echo "--max-allowed-issues ${{ inputs.max-allowed-issues }}"; fi) \
256260
$(if [ -n "${{ inputs.tool }}" ]; then echo "--tool ${{ inputs.tool }}"; fi) \
257261
$(if [ -n "${{ inputs.tool-timeout }}" ]; then echo "--tool-timeout ${{ inputs.tool-timeout }}"; fi) \

0 commit comments

Comments
 (0)