-
Notifications
You must be signed in to change notification settings - Fork 3
150 lines (144 loc) · 4.85 KB
/
sync-server-side-sdks-schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag'
required: true
type: string
pre-release:
description: 'Create pre-release'
required: false
default: false
type: boolean
sync-node:
description: 'Sync Node SDK'
type: boolean
default: true
sync-go:
description: 'Sync Go SDK'
type: boolean
default: true
sync-dotnet:
description: 'Sync Dotnet SDK'
type: boolean
default: true
sync-python:
description: 'Sync Python SDK'
type: boolean
default: true
sync-java:
description: 'Sync Java SDK'
type: boolean
default: true
sync-php:
description: 'Sync PHP SDK'
type: boolean
default: true
name: Sync Server-Side SDKs schema
jobs:
sync-node:
if: inputs.sync-node
name: 'Sync schema in Node SDK'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/update-server-side-sdk-schema.yml@v1
with:
tag: ${{ inputs.tag }}
language: node
language-version: 21
generate-command: 'pnpm generateTypes'
schema-path: resources/fingerprint-server-api.yaml
examples-path: tests/mocked-responses-tests/mocked-responses-data
app-id: ${{ vars.APP_ID }}
repository: fingerprintjs-pro-server-api-node-sdk
pre-release: ${{ inputs.pre-release }}
allowed-scopes: events,visitors,webhook,related-visitors
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
sync-go:
if: inputs.sync-go
name: 'Sync schema in GO SDK'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/update-server-side-sdk-schema.yml@v1
with:
tag: ${{ inputs.tag }}
language: golang
language-version: 1.21
generate-command: 'go run generate.go'
schema-path: res/fingerprint-server-api.yaml
examples-path: test/mocks
app-id: ${{ vars.APP_ID }}
repository: fingerprint-pro-server-api-go-sdk
pre-release: ${{ inputs.pre-release }}
allowed-scopes: events,visitors,webhook,related-visitors
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
sync-dotnet:
if: inputs.sync-dotnet
name: 'Sync schema in Dotnet SDK'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/update-server-side-sdk-schema.yml@v1
with:
tag: ${{ inputs.tag }}
language: dotnet
language-version: '8.x'
generate-command: 'bash ./generate.sh'
schema-path: res/fingerprint-server-api.yaml
examples-path: src/FingerprintPro.ServerSdk.Test/mocks
app-id: ${{ vars.APP_ID }}
repository: fingerprint-pro-server-api-dotnet-sdk
pre-release: ${{ inputs.pre-release }}
allowed-scopes: events,visitors,webhook,related-visitors
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
sync-python:
if: inputs.sync-python
name: 'Sync schema in Python SDK'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/update-server-side-sdk-schema.yml@v1
with:
tag: ${{ inputs.tag }}
language: python
language-version: '3.12'
generate-command: 'bash ./generate.sh'
schema-path: res/fingerprint-server-api.yaml
examples-path: test/mocks
app-id: ${{ vars.APP_ID }}
repository: fingerprint-pro-server-api-python-sdk
pre-release: ${{ inputs.pre-release }}
pre-release-tag: rc
allowed-scopes: events,visitors,webhook
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
sync-java:
if: inputs.sync-java
name: 'Sync schema in Java SDK'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/update-server-side-sdk-schema.yml@v1
with:
tag: ${{ inputs.tag }}
language: java
language-version: '11'
java-version: '11'
generate-command: 'bash ./scripts/generate.sh'
schema-path: res/fingerprint-server-api.yaml
examples-path: sdk/src/test/resources/mocks
app-id: ${{ vars.APP_ID }}
repository: fingerprint-pro-server-api-java-sdk
pre-release: ${{ inputs.pre-release }}
pre-release-tag: develop
allowed-scopes: events,visitors,webhook
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
sync-php:
if: inputs.sync-php
name: 'Sync schema in PHP SDK'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/update-server-side-sdk-schema.yml@v1
with:
tag: ${{ inputs.tag }}
language: php
language-version: '8.3'
generate-command: 'bash ./scripts/generate.sh'
schema-path: res/fingerprint-server-api.yaml
examples-path: test/mocks
app-id: ${{ vars.APP_ID }}
repository: fingerprint-pro-server-api-php-sdk
pre-release: ${{ inputs.pre-release }}
pre-release-tag: develop
allowed-scopes: events,visitors,webhook
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}