-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 912 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
paths:
- '**/*'
- '!README.md'
- '!docs/**'
pull_request:
paths:
- '**/*'
- '!README.md'
- '!docs/**'
permissions:
contents: read
jobs:
golangci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Check conventional commits
uses: webiny/action-conventional-commits@v1.3.0
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: Golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Linting examples manifests
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: examples/
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: '-exclude=G404,G204,G601 ./...'