Skip to content

Commit 175ba41

Browse files
authored
feat: Test SDK package on release (#107)
* feat: test sdk package before release
1 parent e80114d commit 175ba41

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,40 @@ on:
44
types: [published]
55

66
jobs:
7+
test-packaged-node-sdk:
8+
runs-on: ${{ matrix.platform == 'linux' && 'ubuntu-latest' || matrix.platform == 'macos' && 'macos-13' || matrix.platform == 'windows' && 'windows-latest' }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
platform: ['linux']
13+
node-version: [ '18', '20', '22', '23' ]
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Parse version from tag
18+
id: version
19+
uses: release-kit/semver@v2
20+
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- run: |
26+
echo "Testing SDK Package at version ${{ steps.version.outputs.full }}"
27+
28+
- uses: Eppo-exp/sdk-test-data/.github/actions/test-server-package@main
29+
with:
30+
platform: ${{ matrix.platform }}
31+
sdk_name: 'node-server-sdk'
32+
sdk_version: ${{ steps.version.outputs.full }}
33+
sdk_relay_dir: 'node-sdk-relay'
34+
shard_label: 'node-${{ matrix.node-version }}'
35+
service_account_key: ${{ secrets.SERVICE_ACCOUNT_KEY }}
36+
sdk_testing_project_id: ${{ vars.SDK_TESTING_PROJECT_ID }}
37+
sdk_testing_region: ${{ vars.SDK_TESTING_REGION }}
38+
739
publish:
40+
needs: test-packaged-node-sdk
841
runs-on: ubuntu-latest
942
steps:
1043
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)