Skip to content

Commit c6e5776

Browse files
committed
ci: adding Oxygen contract tests to CI
1 parent 34d45e4 commit c6e5776

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/shopify-oxygen.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ jobs:
2626
with:
2727
workspace_name: '@launchdarkly/shopify-oxygen-sdk'
2828
workspace_path: packages/sdk/shopify-oxygen
29+
- name: Install contract test service dependencies
30+
run: yarn workspace @launchdarkly/shopify-oxygen-contract-tests install --no-immutable
31+
- name: Build the test service
32+
run: yarn workspace @launchdarkly/shopify-oxygen-contract-tests build
33+
- name: Launch the test service in the background
34+
run: yarn workspace @launchdarkly/shopify-oxygen-contract-tests start &> /dev/null &
35+
- uses: launchdarkly/gh-actions/actions/contract-tests@61ea6c63de800b495a2fe40c0d4e4ba2a2833ee6
36+
with:
37+
test_service_port: 8000
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
# Based on run-test-harness.sh from the sdk package
40+
extra_params: '--url http://localhost:8000 -skip "streaming.*" -skip "evaluation.*" -skip "event.*" -skip "service.*" -stop-service-at-end'

0 commit comments

Comments
 (0)