This repository was archived by the owner on Dec 6, 2023. It is now read-only.
File tree 3 files changed +12
-40
lines changed
3 files changed +12
-40
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- # ![ HAProxy ] ( https://github.com/haproxytech/kubernetes-ingress/raw/master/assets/images/haproxy-weblogo-210x49.png " HAProxy ")
1
+ # Go linter for projects
2
2
3
- ## HAProxy Github Actions
3
+ This action uses [ golangci-lint] ( https://github.com/golangci/golangci-lint ) to check if code conforms with
4
+ the rules that are specified in ` .golangci.yml ` file hosted in repository
4
5
6
+ ## Inputs
5
7
6
- This repository contains Github Actions used in CI/CD workflows of [ HAProxy Technologies ] ( https://www.haproxy.com/ ) repositories hosted in Github .
8
+ None .
7
9
8
10
## Usage
9
11
10
- - Using action via Docker container image on Docker Hub:
11
-
12
12
``` yaml
13
13
steps :
14
14
- name : Check out code
15
15
uses : actions/checkout@v2
16
- - name : action-name
17
- uses : docker://haproxytech/action-name:TAG
16
+ - name : check-commit
17
+ uses : docker://haproxytech/linter:latest
18
18
` ` `
19
19
20
- - Using action via HAProxyTech repository:
20
+ ## Development phase
21
21
22
- ` ` ` yaml
23
- steps :
24
- - name : Check out code
25
- uses : actions/checkout@v2
26
- - name : action-name
27
- uses : haproxytech/github-actions/action-name@TAG
22
+ action can be simulated locally with
23
+
24
+ ` ` ` bash
25
+ golangci-lint run --enable-all
28
26
```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments