1616 GOLANGCI_LINT_VERSION : ' v2.10.0'
1717
1818jobs :
19- dis-migration-service-setup :
20- runs-on : ubuntu-latest
21- steps :
22- - name : Checkout code
23- uses : actions/checkout@v4
24- - name : Set up Go
25- uses : actions/setup-go@v5
26- with :
27- go-version : ${{ env.GO_VERSION }}
28-
2919 dis-migration-service-audit :
3020 runs-on : ubuntu-latest
3121 steps :
@@ -41,38 +31,54 @@ jobs:
4131 run : make audit
4232
4333 dis-migration-service-build :
44- needs : dis-migration-service-setup
4534 runs-on : ubuntu-latest
4635 steps :
4736 - name : Checkout code
4837 uses : actions/checkout@v4
38+ - name : Setup Go
39+ uses : actions/setup-go@v5
40+ with :
41+ go-version : ${{ env.GO_VERSION }}
42+ cache : true
4943 - name : Run Go build test
5044 run : make build
5145
5246 dis-migration-service-unit :
53- needs : dis-migration-service-setup
5447 runs-on : ubuntu-latest
5548 steps :
5649 - name : Checkout code
5750 uses : actions/checkout@v4
51+ - name : Setup Go
52+ uses : actions/setup-go@v5
53+ with :
54+ go-version : ${{ env.GO_VERSION }}
55+ cache : true
5856 - name : Run Go unit tests
5957 run : make test
6058
6159 dis-migration-service-component :
62- needs : dis-migration-service-setup
6360 runs-on : ubuntu-latest
6461 steps :
6562 - name : Checkout code
6663 uses : actions/checkout@v4
64+ - name : Setup Go
65+ uses : actions/setup-go@v5
66+ with :
67+ go-version : ${{ env.GO_VERSION }}
68+ cache : true
6769 - name : Run Go component tests
6870 run : make test-component
6971
7072 dis-migration-service-lint :
71- needs : dis-migration-service-setup
7273 runs-on : ubuntu-latest
7374 steps :
7475 - name : Checkout code
7576 uses : actions/checkout@v4
77+ - name : Setup Go
78+ uses : actions/setup-go@v5
79+ with :
80+ go-version : ${{ env.GO_VERSION }}
81+ cache : true
7682 - name : Run Go lint checks
7783 uses : golangci/golangci-lint-action@v8
7884 with :
0 commit comments