Repository navigation
58 lines (54 loc) · 2.22 KB
/
Copy pathnode-client.yml
File metadata and controls
58 lines (54 loc) · 2.22 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
58
name: sdk/node-client
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-node-client:
runs-on: ubuntu-latest
strategy:
matrix:
# Node versions to run on.
version: [20, 22]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
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-client-sdk'
workspace_path: packages/sdk/node-client
- name: Install contract test service dependencies
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
run: yarn workspace @launchdarkly/node-client-sdk-contract-tests install --no-immutable
- name: Build shared contract test utils
run: yarn workspace @launchdarkly/js-contract-test-utils build:client
- name: Build the test service
run: yarn workspace @launchdarkly/node-client-sdk-contract-tests build
- name: Launch the test service in the background
run: yarn workspace @launchdarkly/node-client-sdk-contract-tests start 2>&1 &
- name: Run contract tests (FDv1)
uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1
with:
test_service_port: 8000
token: ${{ secrets.GITHUB_TOKEN }}
stop_service: 'false'
extra_params: '--skip-from=${{ github.workspace }}/packages/sdk/node-client/contract-tests/testharness-suppressions.txt'
- name: Run contract tests (FDv2)
uses: launchdarkly/gh-actions/actions/contract-tests@5adb11fd6953e1bc35d9cf1fc1b4374c464e3a8b # contract-tests-v1.3.0
with:
test_service_port: 8000
token: ${{ secrets.GITHUB_TOKEN }}
version: v3
branch: v3
extra_params: '--skip-from=${{ github.workspace }}/packages/sdk/node-client/contract-tests/testharness-suppressions-fdv2.txt'