File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 29
29
${{ runner.os }}-go-
30
30
- name : Verify
31
31
run : make verify
32
+ - name : Enable integration tests
33
+ # Only run integration tests for main branch
34
+ # if: github.ref == 'refs/heads/main'
35
+ run : |
36
+ echo "GO_BUILD_ARGS=-tags=integration" >> $GITHUB_ENV
32
37
- name : Run tests
33
- run : make test
38
+ run : GO_BUILD_ARGS=$GO_BUILD_ARGS make test
34
39
- name : Setup Kubernetes
35
40
36
41
with :
56
61
uses : actions/setup-go@v2
57
62
with :
58
63
go-version : 1.17.x
64
+ - name : Enable integration tests
65
+ # Only run integration tests for main branch
66
+ # if: github.ref == 'refs/heads/main'
67
+ run : |
68
+ echo "GO_BUILD_ARGS=-tags=integration" >> $GITHUB_ENV
59
69
- name : Run tests
60
- run : make test
70
+ run : GO_BUILD_ARGS=$GO_BUILD_ARGS make test
61
71
- name : Prepare
62
72
id : prep
63
73
run : |
You can’t perform that action at this time.
0 commit comments