Skip to content

Commit 539f2f3

Browse files
committed
BUILD/MEDIUM: add check-commit action to CI
1 parent b4a0a90 commit 539f2f3

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/check.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Commit subject
2+
on: [push, pull_request]
3+
jobs:
4+
check:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Check out code
8+
uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 10
11+
- name: check-commit
12+
uses: docker://haproxytech/check-commit:latest

.gitlab-ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
---
2-
reviewdog:
1+
stages:
2+
- lint
3+
golangci-lint:
4+
stage: lint
35
image:
46
name: golangci/golangci-lint:v1.21.0
57
entrypoint: [""]
@@ -9,6 +11,13 @@ reviewdog:
911
- go env
1012
- go mod verify
1113
- golangci-lint run -v --color always --timeout 120s
12-
#- go get -u github.com/reviewdog/reviewdog/cmd/reviewdog
13-
#- reviewdog -reporter=gitlab-mr-discussion
1414
- cd cmd/dataplaneapi/; go build .
15+
lint-commit-msg:
16+
stage: lint
17+
image:
18+
name: haproxytech/check-commit:latest
19+
entrypoint: [""]
20+
tags:
21+
- go
22+
script:
23+
- go run /check.go

0 commit comments

Comments
 (0)