|
14 | 14 | SERVICES: db community thread comment vote search popular |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - test: |
18 | | - name: Run Unit Tests |
19 | | - runs-on: ubuntu-latest |
20 | | - |
21 | | - steps: |
22 | | - - name: Checkout code |
23 | | - uses: actions/checkout@v4 |
24 | | - |
25 | | - - name: Set up Go |
26 | | - uses: actions/setup-go@v5 |
27 | | - with: |
28 | | - go-version: '1.23' |
29 | | - |
30 | | - - name: Run unit tests for thread-service |
31 | | - working-directory: code/services/thread-service |
32 | | - run: go test ./test/... |
33 | | - |
34 | | - - name: Run unit tests for vote-service |
35 | | - working-directory: code/services/vote-service |
36 | | - run: go test ./test/... |
37 | | - |
38 | | - - name: Run unit tests for search-service |
39 | | - working-directory: code/services/search-service |
40 | | - run: go test ./test/... |
41 | | - |
42 | | - - name: Run unit tests for popular-service |
43 | | - working-directory: code/services/popular-service |
44 | | - run: go test ./test/... |
45 | | - |
46 | | - - name: Run unit tests for community-service |
47 | | - working-directory: code/services/community-service |
48 | | - run: go test ./test/... |
49 | | - |
50 | | - - name: Run unit tests for comment-service |
51 | | - working-directory: code/services/comment-service |
52 | | - run: go test ./test/... |
53 | | - |
54 | 17 | check-cluster: |
55 | 18 | name: Check if GKE cluster exists |
56 | 19 | runs-on: ubuntu-latest |
|
82 | 45 |
|
83 | 46 | build-publish-deploy: |
84 | 47 | name: Build, Publish, and Deploy |
85 | | - needs: [test, check-cluster] |
| 48 | + needs: check-cluster |
86 | 49 | if: needs.check-cluster.outputs.exists == 'true' |
87 | 50 | runs-on: ubuntu-latest |
88 | 51 | environment: production |
|
0 commit comments