-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (51 loc) · 1.36 KB
/
pr-validation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: PR Validation
on:
pull_request:
branches:
- main
jobs:
validate-commits:
name: Validate Conventional Commits
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Commitsar check
uses: docker://aevea/commitsar:0.19.0
with:
config: .github/.commitsar.yml
run-reviewdog:
name: Run ReviewDog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ssh-agent
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.EC_DEPLOY_KEY }}
- name: ReviewDog - GolangCI Lint
uses: reviewdog/action-golangci-lint@v2
with:
go_version_file: go.mod
tool_name: GolangCI Lint
golangci_lint_flags: --config=.golangci.yaml
fail_on_error: true
# run-tests:
# name: Tests
# runs-on: self-hosted
# env:
# GOPATH: ${{ github.workspace }}
# GOBIN: ${{ github.workspace }}/bin
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version-file: go.mod
# go-version: 1.20
# - name: Tests
# run: make tests-ci