-
Notifications
You must be signed in to change notification settings - Fork 37
57 lines (53 loc) · 2.17 KB
/
server-node.yml
File metadata and controls
57 lines (53 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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: [20, 22]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: ./actions/setup-yarn
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
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
run: yarn workspace @launchdarkly/node-server-sdk-contract-tests install --no-immutable
- name: Build shared contract test utils (server)
run: yarn workspace @launchdarkly/js-contract-test-utils build:server
- name: Build the test service
run: yarn workspace @launchdarkly/node-server-sdk-contract-tests build
- name: Launch the test service in the background
run: yarn workspace @launchdarkly/node-server-sdk-contract-tests start 2>&1 &
- name: Run contract tests (v2)
uses: launchdarkly/gh-actions/actions/contract-tests@5adb11fd6953e1bc35d9cf1fc1b4374c464e3a8b # contract-tests-v1.3.0
with:
test_service_port: 8000
token: ${{ secrets.GITHUB_TOKEN }}
stop_service: 'false'
extra_params: '--skip-from=./packages/sdk/server-node/contract-tests/testharness-suppressions.txt'
- name: Run contract tests (v3)
uses: launchdarkly/gh-actions/actions/contract-tests@5adb11fd6953e1bc35d9cf1fc1b4374c464e3a8b # contract-tests-v1.3.0
with:
test_service_port: 8000
token: ${{ secrets.GITHUB_TOKEN }}
version: v3.0.0-alpha.6
extra_params: '--skip-from=./packages/sdk/server-node/contract-tests/testharness-suppressions-fdv2.txt'