-
Notifications
You must be signed in to change notification settings - Fork 39
40 lines (40 loc) · 967 Bytes
/
lint.yml
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
---
name: lint and test
on:
push:
pull_request:
jobs:
lint-go:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v3
with:
version: v1.55
args: --timeout 5m
lint-helm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Helm lint
shell: bash
run: |
helm lint ./helm/kubenurse/
test-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Run unit tests
run: go test -race -covermode atomic -coverprofile=profile.cov ./...
- name: Send coverage report
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/mattn/goveralls@v0.0.11
goveralls -coverprofile=profile.cov -service=github