1818 pull_request :
1919
2020jobs :
21+ lint :
22+ name : lint
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Prepare git
26+ run : git config --global core.autocrlf false
27+
28+ - uses : actions/checkout@v4
29+
30+ - name : Set up Go
31+ uses : actions/setup-go@v5
32+ with :
33+ go-version-file : " ./go.mod"
34+ cache : " true"
35+
36+ - name : Lint source code
37+ run : |
38+ make tools lint
39+
2140 unit-tests :
2241 name : unit tests
42+ needs : [lint]
2343 runs-on : ubuntu-latest
2444 steps :
2545 - name : Prepare git
4969 run : |
5070 make tools
5171
52- - name : Lint source code
53- run : |
54- make tools lint
55-
5672 - name : Run tests
5773 env :
5874 DEEPROXY_API_URL : ${{secrets.DEEPROXY_API_URL}}
7086
7187 integration-tests :
7288 name : integration-tests
89+ needs : [lint]
7390 runs-on : ${{ matrix.os }}
7491 strategy :
7592 matrix :
@@ -99,12 +116,13 @@ jobs:
99116 run : |
100117 make tools
101118
102- - name : Run integration tests with Pact
119+ - name : Run integration & smoke tests with Pact
103120 if : matrix.os == 'ubuntu-latest'
104121 env :
105122 DEEPROXY_API_URL : ${{secrets.DEEPROXY_API_URL}}
106123 SNYK_TOKEN : ${{secrets.SNYK_TOKEN }}
107124 INTEG_TESTS : " true"
125+ SMOKE_TESTS : " true"
108126 run : |
109127 export PATH=$PATH:~/pact/bin
110128
@@ -121,6 +139,7 @@ jobs:
121139 DEEPROXY_API_URL : ${{secrets.DEEPROXY_API_URL}}
122140 SNYK_TOKEN : ${{secrets.SNYK_TOKEN }}
123141 INTEG_TESTS : " true"
142+ SMOKE_TESTS : " true"
124143 run : |
125144 export PATH=$PATH:~/pact/bin
126145
@@ -136,12 +155,14 @@ jobs:
136155 DEEPROXY_API_URL : ${{secrets.DEEPROXY_API_URL}}
137156 SNYK_TOKEN : ${{secrets.SNYK_TOKEN }}
138157 INTEG_TESTS : " true"
158+ SMOKE_TESTS : " true"
139159 run : |
140160 make clean test
141161
142162
143163 proxy-test :
144164 name : proxy-test
165+ needs : [lint]
145166 runs-on : ubuntu-latest
146167 steps :
147168 - uses : actions/checkout@v4
@@ -154,6 +175,7 @@ jobs:
154175
155176 race-tests :
156177 name : race-test
178+ needs : [lint]
157179 runs-on : ubuntu-latest
158180 steps :
159181 - uses : actions/checkout@v4
@@ -216,6 +238,7 @@ jobs:
216238 push : true
217239 test-release :
218240 name : test-release
241+ needs : [lint, unit-tests]
219242 runs-on : ubuntu-latest
220243 steps :
221244 - uses : actions/checkout@v4
@@ -259,4 +282,3 @@ jobs:
259282 AWS_S3_BUCKET_NAME : ${{ secrets.AWS_S3_BUCKET_NAME }}
260283 run : |
261284 .github/upload-to-s3.sh --dryrun
262-
0 commit comments