-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (57 loc) · 1.71 KB
/
Copy pathtest.yml
File metadata and controls
61 lines (57 loc) · 1.71 KB
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
52
53
54
55
56
57
58
59
60
61
name: test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
env:
GO_VERSION: ~1.24.10
jobs:
basic:
name: basic
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- uses: actions/checkout@v6
- run: go mod tidy && git diff --exit-code go.mod go.sum
- run: go run github.com/elastic/crd-ref-docs@v0.2.0 --config docs/config.yaml --renderer=markdown --output-path docs/api-reference.md --source-path=apis
helm:
name: helm-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: helm lint helm/haproxy-operator/ --strict
- run: helm template chart helm/haproxy-operator > /dev/null
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.6.2
ginkgo:
name: unit-test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- uses: actions/checkout@v6
- run: go run github.com/onsi/ginkgo/v2/ginkgo@v2.27.2 -r --randomize-all --randomize-suites --race --trace --fail-on-pending --keep-going --vet off --cover
- run: cat coverprofile.out | grep -v "zz_generated." > coverprofile.out.filtered
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverprofile.out.filtered