1
- # Copyright 2023 The Caramello-io Authors.
2
-
3
- name : Sample Testdata Tests
1
+ name : Lint Samples
4
2
5
3
on :
6
4
push :
5
+ paths-ignore :
6
+ - ' **/*.md'
7
7
pull_request :
8
+ paths-ignore :
9
+ - ' **/*.md'
8
10
9
11
jobs :
10
- test :
11
- name : " Testdata - make test"
12
+ lint-samples :
12
13
runs-on : ubuntu-latest
13
14
if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
14
15
steps :
@@ -18,36 +19,15 @@ jobs:
18
19
uses : actions/setup-go@v5
19
20
with :
20
21
go-version : ' ~1.22'
21
- - name : Remove pre-installed kustomize
22
- run : sudo rm -f /usr/local/bin/kustomize
23
- - name : Run make test for project-v4-with-deploy-image
24
- run : cd testdata/project-v4-with-deploy-image && go mod tidy && make all && make test
25
- - name : Run make test for project-v4-multigroup-with-deploy-image
26
- run : cd testdata/project-v4-multigroup-with-deploy-image && go mod tidy && make all && make test
27
-
28
- lint :
29
- name : " Testdata - Lint"
30
- runs-on : ubuntu-latest
31
- # Pull requests from the same repository won't trigger this checks as they were already triggered by the push
32
- if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
33
- steps :
34
- - name : Setup Go
35
- uses : actions/setup-go@v5
36
- with :
37
- go-version : ' ~1.22'
38
- - name : Clone the code
39
- uses : actions/checkout@v4
40
22
- name : Run linter
41
23
uses : golangci/golangci-lint-action@v6
42
24
with :
43
- version : v1.57
44
- working-directory : testdata/project-v4-with-deploy-image
25
+ version : v1.59
26
+ working-directory : testdata/project-v4
45
27
args : --config .golangci.yml ./...
46
- skip-cache : true # first lint action will handle
47
28
- name : Run linter
48
29
uses : golangci/golangci-lint-action@v6
49
30
with :
50
- version : v1.57
51
- working-directory : testdata/project-v4-multigroup- with-deploy-image
31
+ version : v1.59
32
+ working-directory : testdata/project-v4-with-deploy-image
52
33
args : --config .golangci.yml ./...
53
- skip-cache : true # first lint action will handle
0 commit comments