@@ -2,6 +2,9 @@ name: interop
22on :
33 schedule :
44 - cron : " 0 */8 * * *" # every 8h
5+ pull_request :
6+ branches :
7+ - master
58
69# Cache key for caching the Wireshark build.
710# To trigger a rebuild of Wireshark increment this value.
@@ -76,19 +79,33 @@ jobs:
7679 - name : Determine servers
7780 id : set-servers
7881 run : |
79- SERVERS=$(jq -c 'with_entries(select(.value.role == "server" or .value.role == "both")) | keys_unsorted' implementations.json)
82+ if [[ "$EVENT_NAME"=="pull_request" ]]; then
83+ SERVERS="['quic-go','quant']"
84+ else
85+ SERVERS=$(jq -c 'with_entries(select(.value.role == "server" or .value.role == "both")) | keys_unsorted' implementations.json)
86+ fi
8087 echo $SERVERS
8188 echo "::set-output name=servers::$SERVERS"
8289 - name : Determine clients
8390 id : set-clients
8491 run : |
85- CLIENTS=$(jq -c 'with_entries(select(.value.role == "client" or .value.role == "both")) | keys_unsorted' implementations.json)
92+ if [[ "$EVENT_NAME"=="pull_request" ]]; then
93+ CLIENTS="['quic-go','quant']"
94+ else
95+ CLIENTS=$(jq -c 'with_entries(select(.value.role == "client" or .value.role == "both")) | keys_unsorted' implementations.json)
96+ fi
8697 echo $CLIENTS
8798 echo "::set-output name=clients::$CLIENTS"
8899 - name : Determine Docker images
89100 id : set-images
101+ env :
102+ EVENT_NAME : ${{ github.event_name }}
90103 run : |
91- IMAGES=$(jq -c 'keys_unsorted' implementations.json)
104+ if [[ "$EVENT_NAME"=="pull_request" ]]; then
105+ IMAGES="['quic-go','quant']"
106+ else
107+ IMAGES=$(jq -c 'keys_unsorted' implementations.json)
108+ fi
92109 echo $IMAGES
93110 echo "::set-output name=images::$IMAGES"
94111 docker-pull-tools :
0 commit comments