Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore(deps): update amannn/action-semantic-pull-request action to v6 #3414

chore(deps): update amannn/action-semantic-pull-request action to v6

chore(deps): update amannn/action-semantic-pull-request action to v6 #3414

Workflow file for this run

name: sdk/server-node
on:
push:
branches: [main, 'feat/**']
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [main, 'feat/**']
paths-ignore:
- '**.md'
jobs:
build-test-server-node:
runs-on: ubuntu-latest
strategy:
matrix:
# Node versions to run on.
version: [18, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
registry-url: 'https://registry.npmjs.org'
- id: shared
name: Shared CI Steps
uses: ./actions/ci
with:
workspace_name: '@launchdarkly/node-server-sdk'
workspace_path: packages/sdk/server-node
- name: Install contract test service dependencies
run: yarn workspace node-server-sdk-contract-tests install --no-immutable
- name: Build the test service
run: yarn contract-test-service-build
- name: Launch the test service in the background
run: yarn contract-test-service 2>&1 &
- name: Clone and run contract tests from feat/fdv2 branch
run: |
mkdir -p /tmp/sdk-test-harness
git clone https://github.com/launchdarkly/sdk-test-harness.git /tmp/sdk-test-harness
cp ./contract-tests/testharness-suppressions-fdv2.txt /tmp/sdk-test-harness/testharness-suppressions-fdv2.txt
cd /tmp/sdk-test-harness
git checkout feat/fdv2
go build -o test-harness .
./test-harness -url http://localhost:8000 -debug --skip-from=testharness-suppressions-fdv2.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.2
with:
test_service_port: 8000
token: ${{ secrets.GITHUB_TOKEN }}
extra_params: '--skip-from=./contract-tests/testharness-suppressions.txt -stop-service-at-end'
Morty Proxy This is a proxified and sanitized view of the page, visit original site.