File tree Expand file tree Collapse file tree 3 files changed +45
-29
lines changed
Expand file tree Collapse file tree 3 files changed +45
-29
lines changed Original file line number Diff line number Diff line change 1- name : Build
2-
1+ name : build
32on :
4- pull_request_target :
5- branches : [ master ]
3+ pull_request :
4+ branches :
5+ - master
66
77jobs :
8-
9- build_x86_64 :
10- name : Build
8+ build :
9+ name : build
1110 runs-on : ubuntu-latest
1211 steps :
13-
1412 - name : Set up Go 1.14
1513 uses : actions/setup-go@v2
1614 with :
1715 go-version : ^1.14
1816 id : go
19-
20- - name : Check out code into the Go module directory
17+ - name : checkout code
2118 uses : actions/checkout@v2
22-
23- - name : Build
19+ - name : make controller
2420 run : make controller
25-
26- - name : Run
21+ - name : check controller binary
2722 run : ./bin/controller -h || true
Original file line number Diff line number Diff line change 1+ name : integration-test
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+
7+ jobs :
8+ build :
9+ name : integration-test
10+ runs-on : [self-hosted, aws-app-mesh-controller-for-k8s]
11+ steps :
12+ - name : clean work dir from previous runs
13+ run : |
14+ rm -rf *
15+ - name : setup go 1.14
16+ uses : actions/setup-go@v2
17+ with :
18+ go-version : ^1.14
19+ id : go
20+ - name : setup environment
21+ run : |
22+ source ~/.bashrc
23+ - name : checkout code
24+ uses : actions/checkout@v2
25+ - name : make test
26+ run : make test
Original file line number Diff line number Diff line change 1- name : Unit Test
2-
1+ name : unit-test
32on :
4- pull_request_target :
5- branches : [ master ]
3+ pull_request :
4+ branches :
5+ - master
66
77jobs :
8-
9- build_x86_64 :
10- name : Unit Test
8+ build :
9+ name : unit-test
1110 runs-on : ubuntu-latest
1211 steps :
13-
14- - name : Set up Go 1.14
12+ - name : setup go 1.14
1513 uses : actions/setup-go@v2
1614 with :
1715 go-version : ^1.14
1816 id : go
19-
20- - name : Setup kubebuilder
17+ - name : setup kubebuilder
2118 run : |
2219 arch=$(go env GOARCH)
2320 os=$(go env GOOS)
2421 curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/
2522 sudo mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
2623 export PATH=$PATH:/usr/local/kubebuilder/bin
27-
28- - name : Checkout code into the Go module directory
24+ - name : checkout code
2925 uses : actions/checkout@v2
30-
31- - name : Run unit tests
26+ - name : make test
3227 run : make test
You can’t perform that action at this time.
0 commit comments