Skip to content

Commit 0fcad44

Browse files
ldhenrykbrackbillRaymond HoLexi Rossrengawm
authored
[REL-10370] Merge from private mirror after 18.0.2 release (#126)
* use gonfalon generated openapi 3 spec * clean up circle config * get openapi spec from prod gonfalon * use staging url * update go sample to use updated go client * revert back to production openapi spec * fix Python sample * fix swagger-client import name * update typescript target to axios * update java sample code to use new java client * update javascript sample code to use new javascript client * update ruby sample code to use new ruby client * update ruby client for testing * update java sample * [ch103716] Correct typo in big segment update operation name * [ch105622] add flag dependencies endpoints to openapi (#190) * add flag dependencies endpoints * fix list dep flags resp description * Bw/ch109131/generator migration start (#192) * first stab at migrating generators. ran out of time to fix errors. * Go client generating remove old README template for Go ignoring openapi-generator binary from git * download generator if not there * update Go example add back go folder temporarily to build * working go example * template cleanup * updates for python and go * add ruby support * temporary reorder of build * wget json file again build all clients fix up docs there is no more yaml generation * updates for java * small cleanup * basic README cleanup to kick off CI Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> * update releaser (#193) * first stab at migrating generators. ran out of time to fix errors. * Go client generating remove old README template for Go ignoring openapi-generator binary from git * download generator if not there * update Go example add back go folder temporarily to build * working go example * template cleanup * updates for python and go * add ruby support * temporary reorder of build * wget json file again build all clients fix up docs there is no more yaml generation * updates for java * small cleanup * basic README cleanup to kick off CI * update releaser * updates for javascript * wrong directory * fix java * update typescript build * minor js updates * clean up flag in conflict * updates for PHP * remove commented out dependency java Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> * Updating sample codes to work with latest spec (#194) * update readme links (#195) * Adding the DX squad as codeowners * Update docs for environment approval settings (#196) * Update docs for environment approval settings Co-authored-by: Sarah Day <scribblingfox@users.noreply.github.com> * add sample code link (#198) * temporarily remove csharp from publication process (#197) * Remove vestigial files * Update readme * Rev to open api generator 5.2 * Skip spec validation to avoid breaking it * Update README.md Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> * Update readme * Clean description refs from openapi spec before generating * Revert "Clean description refs from openapi spec before generating" This reverts commit 21e2da1. * Skip spec validation * 86 github pages * Revert removal of java sdk gh page * Remove validation skipping * Samples sans reps2 * s/GlobalFlagRep/FlagPost * s/VariateRep/FlagPostVariations * pass in git info to every clinet (#200) * update docs for approvals copy flag (#201) * Update go example * Use patched version of openapi-generator-cli temporarily * Update ld-openapi-generator-cli.jar * further implementation of Dockerized Releaser (#204) * Update examples * Fix python sample * Fix ruby sample * verify that client code builds, fix (most) Java build issues, make dry run more useful (#205) * update goas branch for new release process (#206) * fix problems with Java and JavaScript client builds (#207) * Fix typescript sample code (#208) * updates for typescript * add node t types remove finally * remove commented out code * fixes based on feedback * Fix bad merge * adding github host key (#210) * add ssh dir * back out previous ssh changes and correctly use https (#212) * Java Client Changes (#213) * move Java to end of publish add gradle.properties file to set longer timeout to Sonatype * move Java to end of publish * Update .ldrelease/publish-dry-run.sh Co-authored-by: carmenquan <cquan@launchdarkly.com> Co-authored-by: carmenquan <cquan@launchdarkly.com> * Replace deprecated docker image usage with newer CircleCI docker images (#214) * api-client-javascript 6.0.0 doesn't work due to incorrect package generation (#215) * update to copy hidden files * remove python * Revert "remove python" This reverts commit b5bc51b589406d4af33826be5a3da1ed7836583c. * fix python build (#216) * [sc124605] Removing custom template for ruby client (#217) * removing custom template for ruby client * remove whitespace * using token username (#218) * allow release to proceed if a per-target publish step failed only because it was already published * update Makefile (#220) add temporary template, plan to upstream change * renaming variate to variation (#222) * update generator (#221) * update .jar (#223) * update version template (#224) * switch to gradlew, update from deprecated ghpages library (#225) * allow execution of gradle wrapper (#226) * Remove publish to java gh pages (#228) * remove publish to java gh pages * adding whitespace * remove csharp dotnet references (#230) * Update branch from master to main (#229) * update branch from master to main * adding fetch all * test if main exists * test if main exists * test clone * Removed git submodule -b to checkout the default branch automatically. * Update Makefile * Update Makefile * Update Makefile * Removed c# * Update Makefile * Replaced make foreach with bash for loop. * Apply suggestions from code review * Update Makefile * Update Makefile * Rollback to working version. * Update Makefile * add git fetch * remove variable * adding back version * using prev branch variable * remove version Co-authored-by: Yusinto Ngadiman <yusinto@gmail.com> * update codeowners (#235) * [sc-156083] Add php sample app (#234) * Update to OpenAPI Generator 6.0.0 (#233) * updating to use 6.0.0-beta * update version to 6.0.0 * remove ld-openapi-generator-cli.jar * update gradle file * update gradle file * update gradle file * update gradle file * update gradle file * updating axios * remove files * remove extra gradle * add typescript tsconfig.mustache * adding a projects sample * adding println * adding println for projects * remove delete action * testing new config * testing new api key * removing load prior targets * revert java sample change * updating java config * cleanup in case of bad run for java * Revert "cleanup in case of bad run for java" This reverts commit 205bed7a6d9035f8483e2c23662ed6a7b0bfdb3d. * updating go sample * removing projects * Update tsconfig.mustache (#236) * add blurb about versioning * fixing link * Update samples/java/src/main/java/com/launchdarkly/sample/Main.java * Update README-PREFIX.md Co-authored-by: Molly <molly.jones@launchdarkly.com> * Update README-PREFIX.md Co-authored-by: Yusinto Ngadiman <yusinto@gmail.com> Co-authored-by: Molly <molly.jones@launchdarkly.com> * Adding template for fixing restructuredtext issue (#238) * adding template for fixing restructuredtext issue * missing second line * adding .gitignore file (#239) * Rename gitignore mustache file (#240) * adding .gitignore file * rename file * only updating java (#241) * add wildcards (#242) * fix: [sc-160524] Need to remove all old files before copying new targets to git repo (#244) * adding back other clients * remove contents of the newly cloned git folder * revert change from old PR * add comment * adding back other clients (#243) * Update codeowners (#245) * Update codeowners * fix squad name * Update SSM parameter paths (#247) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Only include 'View code' link if sample code is available (#248) * Only include 'View code' link if sample code is available * Add description to Typescript README --------- Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Update Axios dependency in Typescript client (#251) * Update .gitignore * Try updating axios * Update package.json * Update sample * Generate go interface (#252) * Fix typo in package.json template extension (#253) * Fix typo in package.json template name * Remove ESM clause * Transfer code ownership (#254) * Transfer code ownership * Add developer relations * [RO-771] Migrate repo from Releaser to manual GH Action (#255) * [RO-771] Migrate repo from Releaser to manual GH Action This moves the release process for LD API client libraries from Releaser to Github Actions. I looked at improving the release process itself (to not write out secrets to files, or use more standard release tools) and ultimately it seemed easiest to move everything wholesale and make any improvements to the actual process separately. * Add back releaser files --------- Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Try pinning checkout version to work with Docker images (#256) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Try default ubuntu image and hope it magically has everything we need (#257) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * [RO-771] Add manual setup steps (#258) Add manual setup steps Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Sudo install golang (#259) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Sudo python update for file permissions (#260) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Give GH action permission (#261) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Use java 11 instead of 17 (#262) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Remove java env attempt (#263) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Log the stack size for Java. (#264) * Bump java thread stack size (#265) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Try setting stack size in gradle.properties (#266) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Run prepare script to set up secrets for publishing (#267) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Add publishing secrets as env vars to get written to files (#268) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Correct path for java code signing keyring (#269) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Download gpg key to correct path (#270) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Typo in Makefile (#271) Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * [DOCS-1155] Update README-PREFIX to not hardcode latest version (#272) The README prefix that gets prepended to all generated API client library READMEs had the latest API version hard coded. Now that that version is being deprecated it causes confusion. This updates it to not hard code the exact latest version value. Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> * Update CODEOWNERS file (#273) Update CODEOWNERS: replace @launchdarkly/team-release-backend with @launchdarkly/team-enterprise * update packaging to be compatible with latest twine * testing gha migration * user id fix * testing gha * fixing version * adding rusnon * removed id * updating runson * added user * fixing uid * removed sudo * removed cache in build step * back to gha * adding php as well * added api key * fixing uid * fixing ruby * fixing go * fixing javascript * fixing flag npx * js fix * fixing js version * testing java fix * revert java code as its working fine * Bump generator to v 7.5.0 (#250) * Bump generator to v 7.5.0 * Fix go client * Fix python client * Fix go template * Bump go in CI and update Makefile * Try removing python partial header * Fix typescript client * Use Api instead of API in go client * Update python model package name * Remove python template reference * Revert models change * Remove typescript template files * [sc-242972] Fix GHA multiline issue * [sc-242972] Ignore scripts * [sc-242972] try bumping js version * [sc-242972] Try fixing js * [sc-242972] Swtch to using npm run build * [sc-242972] Switch to ES6 * [sc-242972] Downgrade to node 20 * [sc-242972] switch back to require * [sc-242972] Don't use link command * [sc-242972] commit package.json * [sc-242972] Try cleaning node module * [sc-242972] modernize * [sc-242972] Try checking in package-lock * [sc-242972] Use babel preset * [sc-242972] Comment out JS test * [sc-242972] Add Check Success job * [EXPT-3347] Attempt to Fix Java Compilation Errors (#276) * fix java testImplementation import to account for openapi generator version bump to 7.5.0 * [REL-10048] Update generator to v7.16.0 (#279) * [REL-10048] Try updating to latest version of generator * [REL-10048] Bump php version * [REL-10048] Fix Java build (#280) * [REL-10048] Add build step to test java build * [REL-10048] Remove unnecessary template * [REL-10048] Just focus on java * [REL-10048] build everything * [REL-10048] try fixing build * [REL-10048] update template * [REL-10048] update template * [REL-10048] update template * [REL-10048] rename artifact reference * [REL-10048] delete build action * [REL-10138] Migrate Maven publish from OSSRH to Sonatype Central (#281) * [REL-10138] Migrate Maven publish from OSHH to Sonatype Central * [REL-10138] Revert signing password change * [REL-10138] Update publish URL following https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/ * [REL-10138] Fix nexusStaging serverUrl for Sonatype Central (#282) Add missing serverUrl configuration to the nexusStaging block to point to the new Sonatype Central staging API. Without this property, the plugin defaults to the old OSSRH URL that was shut down on June 30, 2025, causing 401 Unauthorized errors when attempting to close and release repositories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> * (bug-fix) Update form-data dependency (#275) There's a critical security vulnerability in `form-data` 3.4.0, which was a transitive dependency of superagent 5.3.0. The superagent version is set in [this mustache file](https://github.com/OpenAPITools/openapi-generator/blob/ddb15d4b9d6fa0f04090b5db3d64ea1b8a6d0ee6/modules/openapi-generator/src/main/resources/Javascript/libraries/javascript/package.mustache) in the openapi generator, but we can override that with our own local `package.mustache`. This bumps the superagent version for the generated `api-client-javascript` to `^7.0.0`, which imports form-data 4.0.4. * remove developer relations from CODEOWNERS (#284) * [REL-10138] Migrate from nexus-staging plugin to gradle-nexus-publish-plugin (#283) * [REL-10138] Fix nexusStaging serverUrl for Sonatype Central Add missing serverUrl configuration to the nexusStaging block to point to the new Sonatype Central staging API. Without this property, the plugin defaults to the old OSSRH URL that was shut down on June 30, 2025, causing 401 Unauthorized errors when attempting to close and release repositories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * [REL-10138] Migrate from nexus-staging plugin to gradle-nexus-publish-plugin Migrate from the old io.codearte.nexus-staging plugin to the newer io.github.gradle-nexus.publish-plugin to properly support Sonatype Central. The old plugin was causing 403 Forbidden errors because it wasn't fully compatible with the Sonatype Central staging API. The new plugin is the recommended solution and provides better support for the new API. Changes: - Replace io.codearte.nexus-staging plugin with io.github.gradle-nexus.publish-plugin v2.0.0 - Remove nexusStaging configuration block and publishing.repositories.maven block - Add nexusPublishing configuration with proper Sonatype Central URLs - Update publish script to use new task names: publishToSonatype and closeAndReleaseSonatypeRepository 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> * [REL-10138] Fix Gradle task name to closeAndReleaseSonatypeStagingRepository (#285) The correct task name from gradle-nexus-publish-plugin includes 'Staging': - Incorrect: closeAndReleaseSonatypeRepository - Correct: closeAndReleaseSonatypeStagingRepository This fixes the error 'Task closeAndReleaseSonatypeRepository not found in root project'. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> * [REL-10233] add dependency-scan GHA to OpenAPI generation (#286) * [REL-10233] i think this should do it * [REL-10233] mkdir if not exists * [REL-10370] Merge from private mirror after 18.0.2 release * [REL-10370] Remove GitHub Actions workflows to match private mirror These workflow files were not present in the private mirror repository. Removing them to ensure this branch is exactly the same as the private mirror. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Kevin Brackbill <kbrack@launchdarkly.com> Co-authored-by: Raymond Ho <rho@launchdarkly.com> Co-authored-by: Lexi Ross <lross@launchdarkly.com> Co-authored-by: Matt Wagner <mwagner@launchdarkly.com> Co-authored-by: Henry Jacobs <hjacobs@launchdarkly.com> Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com> Co-authored-by: Dan O'Brien <dobrien@launchdarkly.com> Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com> Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: vatasha <21329981+vatasha@users.noreply.github.com> Co-authored-by: Sarah Day <scribblingfox@users.noreply.github.com> Co-authored-by: Christie Williams <xie.williams@gmail.com> Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com> Co-authored-by: Eli Bishop <eli@launchdarkly.com> Co-authored-by: carmenquan <cquan@launchdarkly.com> Co-authored-by: Yusinto Ngadiman <yusinto@gmail.com> Co-authored-by: Jaz White <bluelikejaz@gmail.com> Co-authored-by: Jaz White <jwhite@launchdarkly.com> Co-authored-by: Molly <molly.jones@launchdarkly.com> Co-authored-by: Lucy Voigt <thelucyvoigt@gmail.com> Co-authored-by: Lucy Voigt <lvoigt@launchdarkly.com> Co-authored-by: Paddy <paddy@carvers.com> Co-authored-by: Chris Blackburn <cblackburn@launchdarkly.com> Co-authored-by: Chris Blackburn <blaqbern@users.noreply.github.com> Co-authored-by: Abhishek Acharya <aacharya@launchdarkly.com> Co-authored-by: Brodie Vivio <10712242+bvivio@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Tilde Thurium <tthurium@launchdarkly.com> Co-authored-by: Isabelle Miller <imiller@launchdarkly.com>
1 parent da4d862 commit 0fcad44

25 files changed

Lines changed: 4264 additions & 444 deletions

.github/runs-on.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_extends: .github-private

.github/workflows/build.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
name: CI (build + client samples)
2+
'on':
3+
pull_request:
4+
branches:
5+
- main
6+
7+
env:
8+
LD_API_KEY: ${{ secrets.LD_API_KEY }}
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
container:
17+
image: 'ldcircleci/openapi-release:1'
18+
options: --user 1001
19+
defaults:
20+
run:
21+
shell: bash
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Compute TAG/SHORT_SHA and envs
25+
id: meta
26+
run: >
27+
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
28+
TAG="${GITHUB_REF#refs/tags/}"; else TAG="0.0.1"; fi
29+
30+
echo "TAG=$TAG" >> "$GITHUB_ENV"
31+
32+
echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_ENV"
33+
34+
echo "REPO_USER_URL=https://github.com/${{ github.repository_owner }}"
35+
>> "$GITHUB_ENV"
36+
37+
echo "LD_RELEASE_VERSION=$TAG" >> "$GITHUB_ENV"
38+
- name: Generating code
39+
run: |
40+
export REPO_USER_URL="$REPO_USER_URL"
41+
echo "Setting version to ${TAG}"
42+
LD_RELEASE_VERSION="${TAG}" make all
43+
- name: Archive tgz
44+
run: |
45+
cd targets
46+
tar cvfz "api-clients-${TAG}-${SHORT_SHA}.tgz" api-client-*
47+
mkdir -p /tmp/api-clients
48+
cp "api-clients-${TAG}-${SHORT_SHA}.tgz" /tmp/api-clients/
49+
- name: Upload targets workspace
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: targets
53+
path: targets
54+
- name: Upload html2
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: html
58+
path: targets/html2
59+
- name: Upload html-plain
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: html-plain
63+
path: targets/html
64+
- name: Upload api-clients tgz
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: api-clients
68+
path: /tmp/api-clients
69+
test-go:
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- uses: actions/checkout@v4
74+
- name: Download targets
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: targets
78+
path: targets
79+
- uses: actions/setup-go@v5
80+
with:
81+
go-version: 1.22.x
82+
- name: Run Go sample
83+
env:
84+
GO111MODULE: 'on'
85+
run: make
86+
test-javascript:
87+
runs-on: ubuntu-latest
88+
needs: build
89+
steps:
90+
- uses: actions/checkout@v4
91+
- name: Download targets
92+
uses: actions/download-artifact@v4
93+
with:
94+
name: targets
95+
path: targets
96+
- uses: actions/setup-node@v4
97+
with:
98+
node-version: '20'
99+
- name: Build JS client
100+
working-directory: targets/api-client-javascript
101+
run: |
102+
rm -rf node_modules dist
103+
npm install
104+
npx --yes babel src -d dist --plugins @babel/plugin-transform-modules-commonjs
105+
# TODO: Fix this test
106+
# - name: Run JS sample
107+
# run: |
108+
# cd samples/javascript
109+
# # Install the local package directly
110+
# npm install
111+
# node index.js
112+
test-python:
113+
runs-on: ubuntu-latest
114+
needs: build
115+
steps:
116+
- uses: actions/checkout@v4
117+
- name: Download targets
118+
uses: actions/download-artifact@v4
119+
with:
120+
name: targets
121+
path: targets
122+
- uses: actions/setup-python@v5
123+
with:
124+
python-version: '3.14'
125+
- name: Run Python sample
126+
run: |
127+
python -m pip install --upgrade pip
128+
cd samples/python
129+
pip install -e ../../targets/api-client-python
130+
python main.py
131+
test-ruby:
132+
runs-on: ubuntu-latest
133+
needs: build
134+
steps:
135+
- uses: actions/checkout@v4
136+
- name: Download targets
137+
uses: actions/download-artifact@v4
138+
with:
139+
name: targets
140+
path: targets
141+
- uses: ruby/setup-ruby@v1
142+
with:
143+
ruby-version: '2.7'
144+
- name: Prepare RubyGems / ffi
145+
run: |
146+
# Update RubyGems to a version new enough for ffi 1.17.2
147+
gem update --system 3.4.22 || gem update --system 3.3.22
148+
gem --version
149+
150+
# Install ffi pinned to the last series that supports older Ruby/RubyGems
151+
gem install ffi -v 1.17.2 --no-document
152+
- name: Install Gem
153+
run: |
154+
cd targets/api-client-ruby
155+
gem build launchdarkly_api.gemspec
156+
gem install ./launchdarkly_api*.gem
157+
- name: Run Ruby sample
158+
run: |
159+
cd samples/ruby
160+
ruby main.rb
161+
test-java:
162+
runs-on: ubuntu-latest
163+
needs: build
164+
steps:
165+
- uses: actions/checkout@v4
166+
- name: Download targets
167+
uses: actions/download-artifact@v4
168+
with:
169+
name: targets
170+
path: targets
171+
- uses: actions/setup-java@v4
172+
with:
173+
distribution: temurin
174+
java-version: '8'
175+
- name: Compute TAG
176+
run: >
177+
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
178+
TAG="${GITHUB_REF#refs/tags/}"; else TAG="0.0.1"; fi
179+
180+
echo "TAG=$TAG" >> "$GITHUB_ENV"
181+
- name: Build & run Java sample
182+
run: |
183+
cd targets/api-client-java
184+
mvn clean install
185+
cd ../../samples/java
186+
sed -i.bak -e "s/API_CLIENT_VERSION/${TAG}/g" pom.xml
187+
mvn clean install
188+
mvn exec:java
189+
test-typescript:
190+
runs-on: ubuntu-latest
191+
needs: build
192+
steps:
193+
- uses: actions/checkout@v4
194+
- name: Download targets
195+
uses: actions/download-artifact@v4
196+
with:
197+
name: targets
198+
path: targets
199+
- uses: actions/setup-node@v4
200+
with:
201+
node-version: '20'
202+
- name: Run TS sample (axios)
203+
run: |
204+
cd targets/api-client-typescript-axios
205+
npm install
206+
npm run build
207+
npm link
208+
cd ../../samples/typescript-axios
209+
npm link launchdarkly-api-typescript
210+
npm install
211+
npm run build
212+
npm start
213+
test-php:
214+
runs-on: ubuntu-latest
215+
needs: build
216+
steps:
217+
- uses: actions/checkout@v4
218+
- name: Download targets
219+
uses: actions/download-artifact@v4
220+
with:
221+
name: targets
222+
path: targets
223+
- uses: shivammathur/setup-php@v2
224+
with:
225+
php-version: '8.1'
226+
- name: Run PHP sample
227+
working-directory: samples/php
228+
run: |
229+
echo '{"require":{"launchdarkly/api-client-php":"@dev","guzzlehttp/guzzle":"*"},"repositories":[{"type":"path","url":"../../targets/api-client-php","options":{"symlink":true}}]}' > composer.json
230+
composer update
231+
php index.php
232+
233+
check-success:
234+
name: Check Success
235+
needs:
236+
- build
237+
- test-go
238+
- test-javascript
239+
- test-python
240+
- test-ruby
241+
- test-java
242+
- test-typescript
243+
- test-php
244+
if: always()
245+
runs-on: ubuntu-latest
246+
steps:
247+
- name: Evaluate results
248+
run: |
249+
if printf '${{ toJSON(needs) }}' | grep --quiet --extended-regexp --ignore-case '"result": "(failure|cancelled)"'; then
250+
printf "Tests failed or workflow cancelled:\n\n${{ toJSON(needs) }}"
251+
exit 1
252+
fi

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
2020
RUBYGEM_API_KEY: ${{ secrets.RUBYGEM_API_KEY }}
2121
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
23-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
22+
CENTRAL_PORTAL_USERNAME: ${{ secrets.CENTRAL_PORTAL_USERNAME }}
23+
CENTRAL_PORTAL_PASSWORD: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
2424
permissions:
2525
id-token: write
2626
contents: read

0 commit comments

Comments
 (0)