Skip to content

Commit 44eca8a

Browse files
committed
add js-client-sdk
1 parent 6dc088c commit 44eca8a

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

.github/workflows/test-sdks-remote.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ jobs:
4949
trigger_workflow: true
5050
wait_workflow: true
5151

52+
test-node-client-sdk:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Display workflow details
56+
shell: bash
57+
run: |
58+
echo "Testing eppo-exp/js-client-sdk"
59+
- name: Run remote workflow
60+
uses: convictional/[email protected]
61+
with:
62+
owner: Eppo-exp
63+
repo: js-client-sdk
64+
workflow_file_name: lint-test-sdk.yml
65+
ref: tp/workflows/remote
66+
github_token: ${{ secrets.AUTH_TOKEN }}
67+
wait_interval: 10
68+
propagate_failure: true
69+
trigger_workflow: true
70+
wait_workflow: true
71+
5272
test-node-server-sdk:
5373
runs-on: ubuntu-latest
5474
steps:

.github/workflows/test-sdks.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,29 +76,11 @@ jobs:
7676
sdk_branch: main
7777

7878
test-node-client-sdk:
79-
runs-on: ubuntu-latest
80-
steps:
81-
- name: Check out node client SDK
82-
uses: actions/checkout@v3
83-
with:
84-
repository: 'Eppo-exp/js-client-sdk'
85-
- name: Use Node.js 18
86-
uses: actions/setup-node@v1
87-
with:
88-
node-version: '18.x'
89-
- uses: actions/cache@v2
90-
with:
91-
path: './node_modules'
92-
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }}
93-
- name: 'Set up GCP SDK for downloading test data'
94-
uses: 'google-github-actions/setup-gcloud@v0'
95-
- name: Install SDK dependencies
96-
run: yarn --frozen-lockfile
97-
working-directory: ./
98-
- name: Run tests
99-
run: yarn test
100-
working-directory: ./
101-
79+
uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote
80+
with:
81+
test_data_branch: ${{ github.head_ref || github.ref_name }}
82+
sdk_branch: main
83+
10284
test-react-native-sdk:
10385
runs-on: ubuntu-latest
10486
steps:

0 commit comments

Comments
 (0)