From 4a04a35b10b832b6e196fa862c57b0ab6a1e7d2f Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:13:41 -0600 Subject: [PATCH 01/28] wip --- .github/workflows/test-sdks.yml | 255 +------------------------------- 1 file changed, 6 insertions(+), 249 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 9502740..7257707 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,8 @@ name: Test SDKs +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + on: push: branches: @@ -8,256 +11,10 @@ on: jobs: - test-java-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/java-server-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test - - test-android-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/android-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Restore gradle.properties - env: - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - shell: bash - run: | - mkdir -p ~/.gradle/ - echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV - echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties - echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties - - name: Set up test data - run: make test-data - - name: Spin up emulator and run tests - id: testing - uses: ReactiveCircus/android-emulator-runner@v2 - with: - api-level: 33 - target: google_apis - arch: x86_64 - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -dns-server 8.8.8.8 - script: | - echo "Emulator started" - adb logcat -c # clear logs - mkdir -p app/ # create directory - touch app/emulator.log # create log file - chmod 777 app/emulator.log # allow writing to log file - adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process - ./gradlew connectedCheck # run tests - - name: Upload Emulator Logs - if: always() - uses: actions/upload-artifact@v2 - with: - name: emulator logs - path: app/emulator.log - - name: Upload Test Report - if: always() - uses: actions/upload-artifact@v2 - with: - name: report - path: /Users/runner/work/sdk-test-data/sdk-test-data/eppo/build/reports/androidTests/connected/index.html - - test-node-server-sdk: - runs-on: ubuntu-latest - steps: - - name: 'Check out node server SDK' - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/node-server-sdk' - - name: Use Node.js 16 - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - uses: actions/cache@v2 - with: - path: './node_modules' - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }} - - name: Install root dependencies - run: yarn --frozen-lockfile - working-directory: ./ - - 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:unit - working-directory: ./ - - 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: ./ - - test-react-native-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout React Native SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/react-native-sdk' - - name: Setup - uses: ./.github/actions/setup - - name: Install dependencies - run: yarn install - - name: Run tests - run: yarn test --maxWorkers=2 --coverage - - test-python-sdk: - runs-on: ubuntu-latest - steps: - - name: 'Check out Python SDK' - uses: "actions/checkout@v3" - with: - repository: 'Eppo-exp/python-sdk' - - name: Install Python 3.9 - uses: "actions/setup-python@v2" - with: - python-version: '3.9.x' - - name: "Install dependencies" - run: | - python -VV - python -m pip install --upgrade pip setuptools wheel - python -m pip install -r requirements.txt - python -m pip install -r requirements-test.txt - - name: 'Set up GCP SDK to download test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test - test-php-sdk: runs-on: ubuntu-latest steps: - - name: Check out PHP SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/php-sdk' - - name: Validate composer.json and composer.lock - run: composer validate --strict - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - name: Run tests - run: make test - - test-ruby-sdk: - runs-on: ubuntu-latest - steps: - - name: Check out Ruby SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/ruby-sdk' - - name: Set up Ruby 3 - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 - with: - ruby-version: 3.0.6 - - name: Install dependencies - run: bundle install - - name: Refresh test data - run: bundle exec rake test_refreshed_data - - name: Run tests - run: bundle exec rake test - - test-ios-sdk: - runs-on: macos-latest - steps: - - name: Checkout iOS SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/eppo-ios-sdk' - - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v1' - - name: 'Use gcloud CLI' - run: 'gcloud info' - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test - - test-golang-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Go SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/golang-sdk' - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - name: Build - run: go build -v ./... - - name: 'Set up GCP SDK for downloading test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test - - test-dotnet-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Dot.net SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/dot-net-server-sdk' - - name: Setup .NET 7 - uses: actions/setup-dotnet@v3 + - name: Run SDK tests locally + uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml with: - dotnet-version: 7.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test + test_data_branch: ${BRANCH_NAME} \ No newline at end of file From 4287cf3f98b283753ef5bacc9de5b5428761673f Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:13:49 -0600 Subject: [PATCH 02/28] wip --- .github/workflows/test-sdks-remote.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test-sdks-remote.yml diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml new file mode 100644 index 0000000..16a9e87 --- /dev/null +++ b/.github/workflows/test-sdks-remote.yml @@ -0,0 +1,37 @@ +name: Test SDKs + +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + + test-php-sdk: + runs-on: ubuntu-latest + steps: + - name: Echo Current Branch Name + shell: bash + run: | + echo "Testing eppo-exp/php-sdk" + - name: Echo Workflow Name + shell: bash + run: | + echo "Testing data on branch ${BRANCH_NAME}" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: php-sdk + workflow_file_name: run-tests.yml + ref: tp/action/branch + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + client_payload: '{"test_data_branch": "tp/tests/actions"}' From 6c4597347ba46ba5b6f752886b2cf3746c821ae3 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:14:40 -0600 Subject: [PATCH 03/28] names --- .github/workflows/test-sdks-remote.yml | 2 +- .github/workflows/test-sdks.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 16a9e87..0bdc099 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -1,4 +1,4 @@ -name: Test SDKs +name: Test SDKs Remotely env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 7257707..c0c8736 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,4 +1,4 @@ -name: Test SDKs +name: Test SDKs Locally env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} From 874666d54375420d7660fecda1063a15242600e2 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:15:37 -0600 Subject: [PATCH 04/28] reuse workflow as top level job --- .github/workflows/test-sdks.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index c0c8736..74b7bc5 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -12,9 +12,6 @@ on: jobs: test-php-sdk: - runs-on: ubuntu-latest - steps: - - name: Run SDK tests locally - uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml - with: - test_data_branch: ${BRANCH_NAME} \ No newline at end of file + uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml + with: + test_data_branch: ${BRANCH_NAME} \ No newline at end of file From 329d1c30ff93c2ebc82811ca80e6bab553430028 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:17:36 -0600 Subject: [PATCH 05/28] wip branch reference --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 74b7bc5..20537d9 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -12,6 +12,6 @@ on: jobs: test-php-sdk: - uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml + uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: test_data_branch: ${BRANCH_NAME} \ No newline at end of file From b953942a42fa25f4090bfe298260ec2c5c31fbc7 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:23:57 -0600 Subject: [PATCH 06/28] interpolate --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 20537d9..f706373 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -14,4 +14,4 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${BRANCH_NAME} \ No newline at end of file + test_data_branch: ${{ BRANCH_NAME}} \ No newline at end of file From 9c0b22f2f1effde16b3f8db2721569a4fde207a9 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:25:39 -0600 Subject: [PATCH 07/28] test data branch --- .github/workflows/test-sdks.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index f706373..0e94dc2 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,7 +1,4 @@ name: Test SDKs Locally - -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} on: push: @@ -14,4 +11,4 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ BRANCH_NAME}} \ No newline at end of file + test_data_branch: ${{ github.head_ref || github.ref_name }} \ No newline at end of file From 814d43e5c2bbc7c6ce96e3c7b5a1580e814af596 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:31:01 -0600 Subject: [PATCH 08/28] no vars --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 0e94dc2..a3ab1a7 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,5 @@ name: Test SDKs Locally - + on: push: branches: From 995631216e33e9a1f7f6e32b6e2055f9d4d9c943 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:23:55 -0600 Subject: [PATCH 09/28] node server sdk --- .github/workflows/test-sdks-remote.yml | 32 ++-- .github/workflows/test-sdks.yml | 217 ++++++++++++++++++++++++- 2 files changed, 235 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 0bdc099..b23129d 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -1,8 +1,5 @@ name: Test SDKs Remotely -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - on: push: branches: @@ -14,24 +11,39 @@ jobs: test-php-sdk: runs-on: ubuntu-latest steps: - - name: Echo Current Branch Name + - name: Display workflow details shell: bash run: | echo "Testing eppo-exp/php-sdk" - - name: Echo Workflow Name - shell: bash - run: | - echo "Testing data on branch ${BRANCH_NAME}" - name: Run remote workflow uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: Eppo-exp repo: php-sdk workflow_file_name: run-tests.yml - ref: tp/action/branch + 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: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/node-server-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: node-server-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 - client_payload: '{"test_data_branch": "tp/tests/actions"}' diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index a3ab1a7..2d5d200 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,14 +1,223 @@ name: Test SDKs Locally on: - push: - branches: - - main + pull_request: + types: [opened, synchronize] workflow_dispatch: jobs: + test-java-sdk: + runs-on: macos-latest + steps: + - name: Check out Java SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/java-server-sdk' + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: 'Set up GCP SDK' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Run tests + run: make test + + test-android-sdk: + runs-on: macos-latest + steps: + - name: Check out Java SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/android-sdk' + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: 'Set up GCP SDK' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Restore gradle.properties + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + shell: bash + run: | + mkdir -p ~/.gradle/ + echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV + echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties + echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties + - name: Set up test data + run: make test-data + - name: Spin up emulator and run tests + id: testing + uses: ReactiveCircus/android-emulator-runner@v2 + with: + api-level: 33 + target: google_apis + arch: x86_64 + emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -dns-server 8.8.8.8 + script: | + echo "Emulator started" + adb logcat -c # clear logs + mkdir -p app/ # create directory + touch app/emulator.log # create log file + chmod 777 app/emulator.log # allow writing to log file + adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process + ./gradlew connectedCheck # run tests + - name: Upload Emulator Logs + if: always() + uses: actions/upload-artifact@v2 + with: + name: emulator logs + path: app/emulator.log + - name: Upload Test Report + if: always() + uses: actions/upload-artifact@v2 + with: + name: report + path: /Users/runner/work/sdk-test-data/sdk-test-data/eppo/build/reports/androidTests/connected/index.html + + test-node-server-sdk: + uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + + 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: ./ + + test-react-native-sdk: + runs-on: ubuntu-latest + steps: + - name: Checkout React Native SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/react-native-sdk' + - name: Setup + uses: ./.github/actions/setup + - name: Install dependencies + run: yarn install + - name: Run tests + run: yarn test --maxWorkers=2 --coverage + + test-python-sdk: + runs-on: ubuntu-latest + steps: + - name: 'Check out Python SDK' + uses: "actions/checkout@v3" + with: + repository: 'Eppo-exp/python-sdk' + - name: Install Python 3.9 + uses: "actions/setup-python@v2" + with: + python-version: '3.9.x' + - name: "Install dependencies" + run: | + python -VV + python -m pip install --upgrade pip setuptools wheel + python -m pip install -r requirements.txt + python -m pip install -r requirements-test.txt + - name: 'Set up GCP SDK to download test data' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Run tests + run: make test + test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} \ No newline at end of file + test_data_branch: ${{ github.head_ref || github.ref_name }} + + test-ruby-sdk: + runs-on: ubuntu-latest + steps: + - name: Check out Ruby SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/ruby-sdk' + - name: Set up Ruby 3 + uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + with: + ruby-version: 3.0.6 + - name: Install dependencies + run: bundle install + - name: Refresh test data + run: bundle exec rake test_refreshed_data + - name: Run tests + run: bundle exec rake test + + test-ios-sdk: + runs-on: macos-latest + steps: + - name: Checkout iOS SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/eppo-ios-sdk' + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v1' + - name: 'Use gcloud CLI' + run: 'gcloud info' + - name: Build + run: make build + - name: Pull test data + run: make test-data + - name: Run tests + run: make test + + test-golang-sdk: + runs-on: ubuntu-latest + steps: + - name: Checkout Go SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/golang-sdk' + - uses: actions/setup-go@v3 + with: + go-version: 1.19 + - name: Build + run: go build -v ./... + - name: 'Set up GCP SDK for downloading test data' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Run tests + run: make test + + test-dotnet-sdk: + runs-on: ubuntu-latest + steps: + - name: Checkout Dot.net SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/dot-net-server-sdk' + - name: Setup .NET 7 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: make build + - name: Pull test data + run: make test-data + - name: Run tests + run: make test From ce829b1758dfc59417679bd1460c8b9525123050 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:25:48 -0600 Subject: [PATCH 10/28] on push workflow --- .github/workflows/test-sdks-remote.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index b23129d..bd5575f 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - tp/workflows/remote workflow_dispatch: jobs: From fa12480ebdd28271f0162468ce3794af4482ed4b Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:39:44 -0600 Subject: [PATCH 11/28] update dot-net SDK calls --- .github/workflows/test-sdks-remote.yml | 21 +++++++++++++++++++++ .github/workflows/test-sdks.yml | 23 ++++------------------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index bd5575f..4f04a39 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -48,3 +48,24 @@ jobs: propagate_failure: true trigger_workflow: true wait_workflow: true + + test-dotnet-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing Eppo-exp/dot-net-server-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: dot-net-server-sdk + workflow_file_name: run-tests.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + \ No newline at end of file diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 2d5d200..7672c3f 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -201,23 +201,8 @@ jobs: uses: 'google-github-actions/setup-gcloud@v0' - name: Run tests run: make test - + test-dotnet-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Dot.net SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/dot-net-server-sdk' - - name: Setup .NET 7 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 7.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test + uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} From a4568fd47c1d31ac808b6cb9dc66eb3f79b457e2 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:50:47 -0600 Subject: [PATCH 12/28] pushonbranch --- .github/workflows/test-sdks-remote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 4f04a39..53517f8 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - tp/workflows/remote + - tp/central/workflows workflow_dispatch: jobs: From a7824693b229de91d789da25da41b4a594a103dd Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 23:02:54 -0600 Subject: [PATCH 13/28] spec main branch of SDKs on local test --- .github/workflows/test-sdks.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 7672c3f..e4ddc75 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -82,7 +82,8 @@ jobs: test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-node-client-sdk: runs-on: ubuntu-latest @@ -147,7 +148,8 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-ruby-sdk: runs-on: ubuntu-latest @@ -205,4 +207,5 @@ jobs: test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main From d2f80cf829356e57aa7536d0a7181ea6830aa798 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 23:06:00 -0600 Subject: [PATCH 14/28] on pull pushes --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index e4ddc75..6d47a8a 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -2,7 +2,7 @@ name: Test SDKs Locally on: pull_request: - types: [opened, synchronize] + branches: [ "*" ] workflow_dispatch: jobs: From b00dd2d4c2f2c962de0afd03d27aeb5bdd10c218 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 11:58:30 -0600 Subject: [PATCH 15/28] extract var --- .github/workflows/test-sdks.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 6d47a8a..fa32d50 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,8 @@ name: Test SDKs Locally +env: + TEST_DATA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + on: pull_request: branches: [ "*" ] @@ -82,7 +85,7 @@ jobs: test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} sdk_branch: main test-node-client-sdk: @@ -148,7 +151,7 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} sdk_branch: main test-ruby-sdk: @@ -203,9 +206,9 @@ jobs: uses: 'google-github-actions/setup-gcloud@v0' - name: Run tests run: make test - + test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} sdk_branch: main From 6b517821dcb86f87d995943b9f84c3538a380342 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 11:59:34 -0600 Subject: [PATCH 16/28] remove testing extras --- .github/workflows/test-sdks-remote.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 53517f8..94a6128 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - tp/central/workflows workflow_dispatch: jobs: From ec1482f6d602646fa1aa0be412b52ca1b1a9f6df Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 12:01:06 -0600 Subject: [PATCH 17/28] run on standard PR events (sync, open, reopen) --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index fa32d50..644cad8 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -5,7 +5,7 @@ env: on: pull_request: - branches: [ "*" ] + workflow_dispatch: jobs: From f54ef48018ca410ecd5c9752c043bb4796edce54 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 12:10:19 -0600 Subject: [PATCH 18/28] env scope is not available inside uses job --- .github/workflows/test-sdks.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 644cad8..c541694 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,8 +1,5 @@ name: Test SDKs Locally -env: - TEST_DATA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - on: pull_request: @@ -85,7 +82,7 @@ jobs: test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote with: - test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} + test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-node-client-sdk: @@ -151,7 +148,7 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} + test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-ruby-sdk: @@ -210,5 +207,5 @@ jobs: test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} + test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From 9a2f4346f50fce9d353d855bab36d0e7b0f8402a Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 12:14:12 -0600 Subject: [PATCH 19/28] ensure run on pulls --- .github/workflows/test-sdks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index c541694..8eb9bfb 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -2,7 +2,8 @@ name: Test SDKs Locally on: pull_request: - + branches: [ "*" ] + workflow_dispatch: jobs: From b2f80fbd288c99b8c7ef1900db0c0a984ed6ef1b Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 15:17:13 -0600 Subject: [PATCH 20/28] java sdk --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++++ .github/workflows/test-sdks.yml | 19 ++++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 94a6128..487d591 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -7,6 +7,26 @@ on: workflow_dispatch: jobs: + + test-java-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing Eppo-exp/java-server-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: java-server-sdk + workflow_file_name: run-tests.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true test-php-sdk: runs-on: ubuntu-latest diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 8eb9bfb..372b938 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -9,21 +9,10 @@ on: jobs: test-java-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/java-server-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test + uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-android-sdk: runs-on: macos-latest From bcdbb1d6d43eaaf2d482cda0f7186b6259fdc414 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 15:20:47 -0600 Subject: [PATCH 21/28] enable testing remote on PR push --- .github/workflows/test-sdks-remote.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 487d591..4f0f5db 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - tp/workflows/round2 workflow_dispatch: jobs: From 6dc088caf3204c1bf475aed67a01962a8c1740c8 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 15:22:56 -0600 Subject: [PATCH 22/28] correct java test file name --- .github/workflows/test-sdks-remote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 4f0f5db..523faac 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -21,7 +21,7 @@ jobs: with: owner: Eppo-exp repo: java-server-sdk - workflow_file_name: run-tests.yml + workflow_file_name: lint-test-sdk.yml ref: tp/workflows/remote github_token: ${{ secrets.AUTH_TOKEN }} wait_interval: 10 From 44eca8aa8dc8bd858eab1a2ddb601e1b515bbb80 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 21 Aug 2024 08:41:58 -0600 Subject: [PATCH 23/28] add js-client-sdk --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++ .github/workflows/test-sdks.yml | 28 +++++--------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 523faac..f097443 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -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/trigger-workflow-and-wait@v1.6.1 + 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: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 372b938..412114e 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -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: From ae7a3f8cd451329dd6b2314ec97c35241bf72afc Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 21 Aug 2024 10:21:36 -0600 Subject: [PATCH 24/28] Add python SDK --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++++ .github/workflows/test-sdks.yml | 7 +++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index f097443..49b0275 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -69,6 +69,26 @@ jobs: trigger_workflow: true wait_workflow: true + test-python-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/python-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: python-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: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 412114e..bfdaee7 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -96,6 +96,13 @@ jobs: run: yarn test --maxWorkers=2 --coverage test-python-sdk: + runs-on: ubuntu-latest + steps: + - name: "Run test action" + uses: Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main + runs-on: ubuntu-latest steps: - name: 'Check out Python SDK' From ae56e90db776efe8eb4dde5d6ee630c547941fa8 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 21 Aug 2024 10:25:02 -0600 Subject: [PATCH 25/28] syntax --- .github/workflows/test-sdks.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index bfdaee7..264c71a 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -99,30 +99,10 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run test action" - uses: Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote + uses: 'Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote' + with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main - - runs-on: ubuntu-latest - steps: - - name: 'Check out Python SDK' - uses: "actions/checkout@v3" - with: - repository: 'Eppo-exp/python-sdk' - - name: Install Python 3.9 - uses: "actions/setup-python@v2" - with: - python-version: '3.9.x' - - name: "Install dependencies" - run: | - python -VV - python -m pip install --upgrade pip setuptools wheel - python -m pip install -r requirements.txt - python -m pip install -r requirements-test.txt - - name: 'Set up GCP SDK to download test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote From 8cec2c72bac3ad47064c911c7f2ec754a12ec509 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 09:10:10 -0600 Subject: [PATCH 26/28] fix typo --- .github/workflows/test-sdks.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index fd0d58b..2fb68b0 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,4 @@ name: Test SDKs Locally -name: Test SDKs Locally on: pull_request: From 6a7a0102afc94bb1f2fc0c8f4bc18c920a209423 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Fri, 30 Aug 2024 11:22:49 -0600 Subject: [PATCH 27/28] use a matrix --- .github/workflows/test-sdks-remote.yml | 119 +++---------------------- 1 file changed, 14 insertions(+), 105 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index d6377a4..336bda0 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,128 +4,37 @@ on: push: branches: - main - - tp/workflows/round2 workflow_dispatch: jobs: - test-java-sdk: + test-sdks: runs-on: ubuntu-latest + strategy: + matrix: + sdk: + - { repo: "java-server-sdk", workflow: "lint-test-sdk.yml", ref: "tp/workflows/remote" } + - { repo: "php-sdk", workflow: "run-tests.yml", ref: "main" } + - { repo: "js-client-sdk", workflow: "lint-test-sdk.yml", ref: "tp/workflows/remote" } + - { repo: "python-sdk", workflow: "lint-test-sdk.yml", ref: "tp/workflows/remote" } + - { repo: "node-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "dot-net-server-sdk", workflow: "run-tests.yml", ref: "main" } steps: - name: Display workflow details shell: bash run: | - echo "Testing Eppo-exp/java-server-sdk" + echo "Testing eppo-exp/${{ matrix.sdk.repo }}" - name: Run remote workflow uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: Eppo-exp - repo: java-server-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-php-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/php-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: php-sdk - workflow_file_name: run-tests.yml - ref: main + repo: ${{ matrix.sdk.repo }} + workflow_file_name: ${{ matrix.sdk.workflow }} + ref: ${{ matrix.sdk.ref }} github_token: ${{ secrets.AUTH_TOKEN }} wait_interval: 10 propagate_failure: true 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/trigger-workflow-and-wait@v1.6.1 - 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-python-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/python-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: python-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: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/node-server-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: node-server-sdk - workflow_file_name: lint-test-sdk.yml - ref: main - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-dotnet-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing Eppo-exp/dot-net-server-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: dot-net-server-sdk - workflow_file_name: run-tests.yml - ref: main - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true \ No newline at end of file From b8ca3a3221ac87bd32b3ee8437c73fba65280660 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Fri, 30 Aug 2024 11:24:58 -0600 Subject: [PATCH 28/28] remove temp refs --- .github/workflows/test-sdks-remote.yml | 6 +++--- .github/workflows/test-sdks.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 336bda0..0239381 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -13,10 +13,10 @@ jobs: strategy: matrix: sdk: - - { repo: "java-server-sdk", workflow: "lint-test-sdk.yml", ref: "tp/workflows/remote" } + - { repo: "java-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } - { repo: "php-sdk", workflow: "run-tests.yml", ref: "main" } - - { repo: "js-client-sdk", workflow: "lint-test-sdk.yml", ref: "tp/workflows/remote" } - - { repo: "python-sdk", workflow: "lint-test-sdk.yml", ref: "tp/workflows/remote" } + - { repo: "js-client-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "python-sdk", workflow: "lint-test-sdk.yml", ref: "main" } - { repo: "node-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } - { repo: "dot-net-server-sdk", workflow: "run-tests.yml", ref: "main" } steps: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 2fb68b0..6a770fc 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -9,7 +9,7 @@ on: jobs: test-java-sdk: - uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -76,7 +76,7 @@ jobs: sdk_branch: main test-node-client-sdk: - uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -99,7 +99,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run test action" - uses: 'Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote' + uses: 'Eppo-exp/python-sdk/.github/actions/action-test@main' with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main