Skip to content

ci(contract-test-utils): consolidating test websocket implementation #1253

ci(contract-test-utils): consolidating test websocket implementation

ci(contract-test-utils): consolidating test websocket implementation #1253

name: sdk/shopify-oxygen
on:
push:
branches: [main, 'feat/**']
paths-ignore:
- '**.md'
pull_request:
branches: [main, 'feat/**']
paths-ignore:
- '**.md'
jobs:
build-test-shopify-oxygen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
# https://shopify.dev/docs/storefronts/headless/hydrogen/getting-started#requirements
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- id: shared
name: Shared CI Steps
uses: ./actions/ci
with:
workspace_name: '@launchdarkly/shopify-oxygen-sdk'
workspace_path: packages/sdk/shopify-oxygen
- name: Install contract test service dependencies
run: yarn workspace @launchdarkly/shopify-oxygen-contract-tests install --no-immutable
- name: Build shared contract test utils
run: yarn workspace @launchdarkly/js-contract-test-utils build:server
- name: Build the test service
run: yarn workspace @launchdarkly/shopify-oxygen-contract-tests build
- name: Launch the test service in the background
run: yarn workspace @launchdarkly/shopify-oxygen-contract-tests start &> /dev/null &
- uses: launchdarkly/gh-actions/actions/contract-tests@d271978e893b5b9facb9f000414e9fcd62e1f78b
with:
test_service_port: 8000
token: ${{ secrets.GITHUB_TOKEN }}
# Based on run-test-harness.sh from the sdk package
extra_params: '--url http://localhost:8000 --skip "streaming.*" --skip "evaluation.*" --skip "event.*" --skip "service.*" --stop-service-at-end'