Skip to content

Commit 074a490

Browse files
authored
[OB-63] Setup SDKs for submodule structure (#9)
## Summary Migrate SDKs and E2E example apps from github.com/highlight/highlight to new launchdarkly repos. ## How did you test this change? CI ## Are there any deployment considerations? no ## Does this work require review from our design team? no <!-- ld-jira-link --> --- Related Jira issue: [OB-63: Setup automated deploys from new GitHub repos](https://launchdarkly.atlassian.net/browse/OB-63) <!-- end-ld-jira-link -->
1 parent b6abad9 commit 074a490

File tree

19 files changed

+4587
-4600
lines changed

19 files changed

+4587
-4600
lines changed

.github/workflows/devskim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
lint:
1919
name: DevSkim
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-22.04-8core-32gb
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1414
jobs:
1515
build-dotnet:
1616
name: ASP.NET Core SDK
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04-8core-32gb
1818
defaults:
1919
run:
2020
working-directory: ./sdk/highlight-dotnet

.github/workflows/e2e.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ jobs:
1111
e2e-docker:
1212
name: E2E Dockerized Apps
1313
timeout-minutes: 60
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04-8core-32gb
1515
strategy:
1616
matrix:
1717
app: ['dotnet', 'dotnet4', 'go', 'python', 'ruby']
1818

1919
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v4
22-
with:
23-
token: ${{ secrets.SUBMODULE_PAT }}
24-
submodules: recursive
20+
- uses: actions/checkout@v4
2521

2622
- name: Install poetry
2723
run: pipx install poetry
@@ -36,21 +32,6 @@ jobs:
3632
working-directory: ./e2e/tests
3733
run: poetry install --all-extras
3834

39-
- name: Login to Docker Hub
40-
if: github.event.pull_request.head.repo.full_name == 'highlight/highlight' || github.ref == 'refs/heads/main'
41-
uses: docker/login-action@v3
42-
with:
43-
username: ${{ secrets.DOCKERHUB_USERNAME }}
44-
password: ${{ secrets.DOCKERHUB_TOKEN }}
45-
46-
- name: Login to GitHub Docker
47-
if: github.event.pull_request.head.repo.full_name == 'highlight/highlight' || github.ref == 'refs/heads/main'
48-
uses: docker/login-action@v3
49-
with:
50-
registry: ghcr.io
51-
username: Vadman97
52-
password: ${{ secrets.GH_DOCKER_TOKEN }}
53-
5435
- name: Start docker containers & run sdk e2e test
5536
working-directory: ./e2e/tests/src
5637
run: poetry run python app_runner.py ${{ matrix.app }}

.github/workflows/elixir-sdk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1717
jobs:
1818
format:
1919
name: format elixir files
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-22.04-8core-32gb
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
@@ -34,7 +34,7 @@ jobs:
3434

3535
test:
3636
name: test package
37-
runs-on: ubuntu-latest
37+
runs-on: ubuntu-22.04-8core-32gb
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v4
@@ -54,7 +54,7 @@ jobs:
5454

5555
publish:
5656
name: publish package
57-
runs-on: ubuntu-latest
57+
runs-on: ubuntu-22.04-8core-32gb
5858
if: github.ref == 'ref/heads/main'
5959
needs: test
6060
steps:

.github/workflows/force-go-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1212
jobs:
1313
build:
1414
name: Renew documentation
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04-8core-32gb
1616
steps:
1717
- name: Pull new module version
1818
uses: andrewslotin/go-proxy-pull-action@master

.github/workflows/go-sdk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1313
jobs:
1414
format:
1515
name: format go files
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04-8core-32gb
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232

3333
lint:
3434
name: lint go files
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-22.04-8core-32gb
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v4
@@ -52,7 +52,7 @@ jobs:
5252

5353
build:
5454
name: build binary
55-
runs-on: ubuntu-latest
55+
runs-on: ubuntu-22.04-8core-32gb
5656
steps:
5757
- name: Checkout
5858
uses: actions/checkout@v4
@@ -69,7 +69,7 @@ jobs:
6969
test-and-cov:
7070
name: run tests and generate code coverage profile
7171
needs: [build]
72-
runs-on: ubuntu-latest
72+
runs-on: ubuntu-22.04-8core-32gb
7373
steps:
7474
- name: Checkout
7575
uses: actions/checkout@v4

.github/workflows/java-sdk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
3030
jobs:
3131
setup:
3232
name: Setup
33-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-22.04-8core-32gb
3434
outputs:
3535
version: ${{ steps.version.outputs.version }}
3636
deploy: ${{ steps.deploy.outputs.deploy }}
@@ -91,7 +91,7 @@ jobs:
9191
9292
build:
9393
name: Build
94-
runs-on: ubuntu-latest
94+
runs-on: ubuntu-22.04-8core-32gb
9595
needs: setup
9696
if: ${{ needs.setup.outputs.build == 'true' }}
9797
defaults:
@@ -122,7 +122,7 @@ jobs:
122122

123123
test:
124124
name: Test
125-
runs-on: ubuntu-latest
125+
runs-on: ubuntu-22.04-8core-32gb
126126
needs: setup
127127
if: ${{ needs.setup.outputs.test == 'true' }}
128128
defaults:
@@ -159,7 +159,7 @@ jobs:
159159

160160
deploy:
161161
name: Deploy
162-
runs-on: ubuntu-latest
162+
runs-on: ubuntu-22.04-8core-32gb
163163
needs: [setup, build, test]
164164
if: ${{ needs.setup.outputs.deploy == 'true' }}
165165
defaults:

.github/workflows/python.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1414
jobs:
1515
build:
1616
name: Python SDK
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04-8core-32gb
1818
defaults:
1919
run:
2020
working-directory: ./sdk/highlight-py
@@ -34,7 +34,6 @@ jobs:
3434
- name: Test
3535
run: poetry run pytest --cov=highlight_io --cov-branch --cov-report xml
3636
- name: Get Cover
37-
if: github.event.pull_request.head.repo.full_name == 'highlight/highlight'
3837
uses: orgoro/coverage@v3
3938
with:
4039
coverageFile: ./sdk/highlight-py/coverage.xml
@@ -55,7 +54,7 @@ jobs:
5554

5655
e2e:
5756
name: Validate E2E tests
58-
runs-on: ubuntu-latest
57+
runs-on: ubuntu-22.04-8core-32gb
5958
defaults:
6059
run:
6160
working-directory: ./e2e/tests

.github/workflows/ruby.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1313
jobs:
1414
build:
1515
name: Ruby SDK
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04-8core-32gb
1717
strategy:
1818
matrix:
1919
ruby: ['3.1', '3.3']
@@ -54,7 +54,7 @@ jobs:
5454
RUBYGEMS_API_KEY: '${{secrets.RUBYGEMS_API_KEY}}'
5555
e2e:
5656
name: Rails Example App Tests
57-
runs-on: ubuntu-latest
57+
runs-on: ubuntu-22.04-8core-32gb
5858
defaults:
5959
run:
6060
working-directory: ./e2e/ruby/rails/demo
@@ -75,7 +75,7 @@ jobs:
7575
run: bundle exec rubocop
7676
e2e-api-only:
7777
name: Rails API-Only Example App Tests
78-
runs-on: ubuntu-latest
78+
runs-on: ubuntu-22.04-8core-32gb
7979
defaults:
8080
run:
8181
working-directory: ./e2e/ruby/rails/api-only

.github/workflows/rust-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1717
jobs:
1818
build:
1919
name: Build
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-22.04-8core-32gb
2121
if: github.event_name == 'pull_request'
2222
defaults:
2323
run:
@@ -41,7 +41,7 @@ jobs:
4141
dry-run: true
4242
publish:
4343
name: Publish
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-22.04-8core-32gb
4545
if: github.event_name == 'push'
4646
defaults:
4747
run:

0 commit comments

Comments
 (0)