Skip to content

Commit

Permalink
add js-client-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
typotter committed Aug 21, 2024
1 parent 6dc088c commit 44eca8a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test-sdks-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@ jobs:
trigger_workflow: true
wait_workflow: true

test-node-client-sdk:
runs-on: ubuntu-latest
steps:
- name: Display workflow details
shell: bash
run: |
echo "Testing eppo-exp/js-client-sdk"
- name: Run remote workflow
uses: convictional/[email protected]
with:
owner: Eppo-exp
repo: js-client-sdk
workflow_file_name: lint-test-sdk.yml
ref: tp/workflows/remote
github_token: ${{ secrets.AUTH_TOKEN }}
wait_interval: 10
propagate_failure: true
trigger_workflow: true
wait_workflow: true

test-node-server-sdk:
runs-on: ubuntu-latest
steps:
Expand Down
28 changes: 5 additions & 23 deletions .github/workflows/test-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,11 @@ jobs:
sdk_branch: main

test-node-client-sdk:
runs-on: ubuntu-latest
steps:
- name: Check out node client SDK
uses: actions/checkout@v3
with:
repository: 'Eppo-exp/js-client-sdk'
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: '18.x'
- uses: actions/cache@v2
with:
path: './node_modules'
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }}
- name: 'Set up GCP SDK for downloading test data'
uses: 'google-github-actions/setup-gcloud@v0'
- name: Install SDK dependencies
run: yarn --frozen-lockfile
working-directory: ./
- name: Run tests
run: yarn test
working-directory: ./

uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote
with:
test_data_branch: ${{ github.head_ref || github.ref_name }}
sdk_branch: main

test-react-native-sdk:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 44eca8a

Please sign in to comment.