@@ -11,12 +11,18 @@ jobs:
1111 strategy :
1212 matrix :
1313 service :
14- - compound_library
15- - compound_soaking
16- - crystal_library
17- - soakdb_sync
18- - pin_packing
19- - targeting
14+ - name : compound_library
15+ publish : true
16+ - name : compound_soaking
17+ publish : true
18+ - name : crystal_library
19+ publish : true
20+ - name : soakdb_sync
21+ publish : false
22+ - name : pin_packing
23+ publish : false
24+ - name : targeting
25+ publish : false
2026 runs-on : ubuntu-latest
2127 steps :
2228 - name : Checkout source
@@ -36,23 +42,34 @@ jobs:
3642 with :
3743 command : run
3844 args : >
39- --package ${{ matrix.service }}
45+ --package ${{ matrix.service.name }}
4046 --manifest-path backend/Cargo.toml
4147 schema
42- --path ${{ matrix.service }}.graphql
48+ --path ${{ matrix.service.name }}.graphql
4349
4450 - name : Upload Schema Artifact
4551 uses : actions/upload-artifact@v4.3.1
4652 with :
47- name : ${{ matrix.service }}.graphql
48- path : ${{ matrix.service }}.graphql
53+ name : ${{ matrix.service.name }}.graphql
54+ path : ${{ matrix.service.name }}.graphql
4955
50- - name : publish subgraph
56+ - name : check subgraph schema
57+ if : ${{ matrix.service.publish }}
58+ uses : danielsinclair/rover-setup@v1
59+ with :
60+ args : subgraph check xchemlab@current
61+ --schema ${{ matrix.service.name }}.graphql
62+ --name ${{ matrix.service.name }}
63+ env :
64+ APOLLO_KEY : ${{ secrets.APOLLO_KEY }}
65+
66+ - name : publish subgraph schema
67+ if : ${{ matrix.service.publish == true }}
5168 uses : danielsinclair/rover-setup@v1
5269 with :
5370 args : subgraph publish xchemlab@current
54- --routing-url http://${{ matrix.service }}:80
55- --schema ${{ matrix.service }}.graphql
56- --name ${{ matrix.service }}
71+ --routing-url http://${{ matrix.service.name }}:80
72+ --schema ${{ matrix.service.name }}.graphql
73+ --name ${{ matrix.service.name }}
5774 env :
5875 APOLLO_KEY : ${{ secrets.APOLLO_KEY }}
0 commit comments