@@ -50,12 +50,15 @@ jobs:
5050 run_tests : false
5151 - name : ' Launch test service as background task'
5252 run : $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 &
53- - name : ' Run v3 SDK test harness'
54- run : |
55- curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/v3.0.0-alpha.3/downloader/run.sh \
56- | VERSION=v3.0.0-alpha.3 \
57- PARAMS="-url http://localhost:$TEST_SERVICE_PORT -debug -stop-service-at-end -skip-from=$SUPPRESSION_FILE" \
58- sh
53+ # https://github.com/launchdarkly/gh-actions/releases/tag/contract-tests-v1.1.0
54+ - uses : launchdarkly/gh-actions/actions/contract-tests@2715574e04448246bc529a23a81766491bbc4aae
55+ with :
56+ test_service_port : ${{ env.TEST_SERVICE_PORT }}
57+ token : ${{ secrets.GITHUB_TOKEN }}
58+ version : v3
59+ branch : v3
60+ debug_logging : ' true'
61+ extra_params : -skip-from=${{ env.SUPPRESSION_FILE }}
5962
6063 contract-tests-curl :
6164 runs-on : ubuntu-22.04
@@ -95,12 +98,15 @@ jobs:
9598 use_curl : true
9699 - name : ' Launch test service as background task'
97100 run : $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 &
98- - name : ' Run v3 SDK test harness'
99- run : |
100- curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/v3.0.0-alpha.3/downloader/run.sh \
101- | VERSION=v3.0.0-alpha.3 \
102- PARAMS="-url http://localhost:$TEST_SERVICE_PORT -debug -stop-service-at-end -skip-from=$SUPPRESSION_FILE" \
103- sh
101+ # https://github.com/launchdarkly/gh-actions/releases/tag/contract-tests-v1.1.0
102+ - uses : launchdarkly/gh-actions/actions/contract-tests@2715574e04448246bc529a23a81766491bbc4aae
103+ with :
104+ test_service_port : ${{ env.TEST_SERVICE_PORT }}
105+ token : ${{ secrets.GITHUB_TOKEN }}
106+ version : v3
107+ branch : v3
108+ debug_logging : ' true'
109+ extra_params : -skip-from=${{ env.SUPPRESSION_FILE }}
104110
105111 build-test-server :
106112 runs-on : ubuntu-22.04
0 commit comments