Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions .github/actions/contract-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,26 @@ runs:
shell: bash
run: make start-contract-test-service-bg

- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.2
- uses: actions/setup-go@v5
with:
test_service_port: 8080
token: ${{ inputs.token }}
extra_params: "-status-timeout 120 -skip-from ./ContractTests/testharness-suppressions.txt"
go-version: 'stable'
cache: false

# Temporary: build the harness from the sdk-test-harness PR #377 branch
# (adds the streaming connection-lifecycle test) instead of downloading a
# released harness binary, and run only that test.
- name: Build harness from PR branch
shell: bash
run: |
git clone --depth 1 -b jb/sdk-2669/fdv1-close-contract-test https://github.com/launchdarkly/sdk-test-harness.git /tmp/sdk-test-harness
cd /tmp/sdk-test-harness
go build -o testharness .

- name: Run connection lifecycle contract test
shell: bash
run: |
/tmp/sdk-test-harness/testharness \
-url http://localhost:8080 \
-run 'streaming/connection lifecycle' \
-debug -status-timeout 120 -stop-service-at-end \
-skip-from ./ContractTests/testharness-suppressions.txt
136 changes: 3 additions & 133 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,128 +9,10 @@ on:
paths-ignore:
- '**.md'

# Temporary verification branch: CI is stripped down to the contract-tests job
# only, so the expensive macOS build/test matrix does not run for a throwaway
# do-not-merge PR. See the PR description for context.
jobs:
lint:
runs-on: macos-15

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: 16.4.0

- uses: ./.github/actions/lint

build-ios:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- xcode-version: 16.4.0
ios-sim: "platform=iOS Simulator,name=iPhone 16"
os: macos-15
- xcode-version: 15.4.0
ios-sim: "platform=iOS Simulator,name=iPhone 15"
os: macos-14

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: ${{ matrix.xcode-version }}

- uses: ./.github/actions/build-ios
with:
ios-sim: ${{ matrix.ios-sim }}

build-macos:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- xcode-version: 16.4.0
os: macos-15
- xcode-version: 15.4.0
os: macos-14

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: ${{ matrix.xcode-version }}

- uses: ./.github/actions/build-macos

build-tvos:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- xcode-version: 16.4.0
os: macos-15
- xcode-version: 15.4.0
os: macos-14

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: ${{ matrix.xcode-version }}

- uses: ./.github/actions/build-tvos

build-watchos:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- xcode-version: 16.4.0
os: macos-15
- xcode-version: 15.4.0
os: macos-14

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: ${{ matrix.xcode-version }}

- uses: ./.github/actions/build-watchos

test-swiftpm:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- xcode-version: 16.4.0
os: macos-15
- xcode-version: 15.4.0
os: macos-14

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: ${{ matrix.xcode-version }}

- uses: ./.github/actions/test-swiftpm

contract-tests:
runs-on: macos-15

Expand All @@ -144,15 +26,3 @@ jobs:
- uses: ./.github/actions/contract-tests
with:
token: ${{ secrets.GITHUB_TOKEN }}

build-docs:
runs-on: macos-15

steps:
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: 16.4.0

- uses: ./.github/actions/build-docs
Loading