-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into src_info_export
# Conflicts: # commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/commercetools.Api.IntegrationTests.csproj
- Loading branch information
Showing
9,463 changed files
with
352,886 additions
and
54,901 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @commercetools/clients-team | ||
* @commercetools/developer-tooling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- [ ] Changeset added | ||
|
||
### Features | ||
|
||
### Fixes | ||
|
||
### Breaking changes | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,41 @@ on: | |
name: CI | ||
|
||
jobs: | ||
licenses: | ||
name: License update | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' | ||
|
||
steps: | ||
- name: Support longpaths | ||
run: git config --global core.longpaths true | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
- run: dotnet tool restore | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet restore --configfile Nuget.config --packages ../packages | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet build --no-restore --source ../packages -c Release | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet tool install --global dotnet-project-licenses | ||
- run: ./license-check.sh | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: github.event_name == 'push' && github.ref != 'refs/heads/master' | ||
with: | ||
file_pattern: 'licenses/index.json' | ||
commit_message: "TASK: Updating license information" | ||
commit_user_name: automation-commercetools | ||
commit_user_email: [email protected] | ||
commit_author: Auto Mation <[email protected]> | ||
disable_globbing: true | ||
|
||
unittests: | ||
name: Unit tests | ||
|
||
|
@@ -24,11 +59,15 @@ jobs: | |
- name: Support longpaths | ||
run: git config --global core.longpaths true | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup dotnet 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/checkout@v3 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '3.1' # SDK Version to use. | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
- run: dotnet tool restore | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet restore --configfile Nuget.config --packages ../packages | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet build --no-restore --source ../packages -c Release | ||
|
@@ -39,8 +78,6 @@ jobs: | |
working-directory: ./commercetools.Sdk | ||
- run: dotnet test --verbosity=normal Tests/commercetools.Sdk.ImportApi.Tests --no-build -c Release | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet test --verbosity=normal Tests/commercetools.Sdk.MLApi.Tests --no-build -c Release | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet test --verbosity=normal Tests/commercetools.Sdk.HistoryApi.Tests --no-build -c Release | ||
working-directory: ./commercetools.Sdk | ||
|
||
|
@@ -52,25 +89,35 @@ jobs: | |
strategy: | ||
max-parallel: 1 | ||
matrix: | ||
container: | ||
- BuiltIn | ||
ClientType: | ||
- Stream | ||
- String | ||
env: | ||
CTP_Container: ${{ matrix.container }} | ||
CTP_ClientType: ${{ matrix.ClientType }} | ||
CTP_Client__ClientId: ${{ secrets.CTP_CLIENT_ID }} | ||
CTP_Client__ClientSecret: ${{ secrets.CTP_CLIENT_SECRET }} | ||
CTP_Client__ProjectKey: ${{ secrets.CTP_PROJECT_KEY }} | ||
CTP_Client__Scope: ${{ secrets.CTP_SCOPE }} | ||
CTP_Import__ClientId: ${{ secrets.CTP_CLIENT_ID }} | ||
CTP_Import__ClientSecret: ${{ secrets.CTP_CLIENT_SECRET }} | ||
CTP_Import__ProjectKey: ${{ secrets.CTP_PROJECT_KEY }} | ||
CTP_Import__Scope: ${{ secrets.CTP_SCOPE }} | ||
CTP_Import__ApiBaseAddress: "https://import.europe-west1.gcp.commercetools.com/" | ||
CTP_MeClient__ClientId: ${{ secrets.CTP_MECLIENT_ID }} | ||
CTP_MeClient__ClientSecret: ${{ secrets.CTP_MECLIENT_SECRET }} | ||
CTP_MeClient__ProjectKey: ${{ secrets.CTP_MEPROJECT_KEY }} | ||
CTP_MeClient__Scope: ${{ secrets.CTP_MESCOPES }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/checkout@v3 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '3.1' # SDK Version to use. | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
- run: dotnet tool restore | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet restore --configfile Nuget.config --packages ../packages | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet build --no-restore --source ../packages -c Release | ||
|
@@ -86,6 +133,11 @@ jobs: | |
CTP_Client__ClientSecret: ${{ secrets.CTP_CLIENT_SECRET_PR }} | ||
CTP_Client__ProjectKey: ${{ secrets.CTP_PROJECT_KEY_PR }} | ||
CTP_Client__Scope: ${{ secrets.CTP_SCOPE_PR }} | ||
CTP_Import__ClientId: ${{ secrets.CTP_CLIENT_ID_PR }} | ||
CTP_Import__ClientSecret: ${{ secrets.CTP_CLIENT_SECRET_PR }} | ||
CTP_Import__ProjectKey: ${{ secrets.CTP_PROJECT_KEY_PR }} | ||
CTP_Import__Scope: ${{ secrets.CTP_SCOPE_PR }} | ||
CTP_Import__ApiBaseAddress: "https://import.europe-west1.gcp.commercetools.com/" | ||
CTP_MeClient__ClientId: ${{ secrets.CTP_MECLIENT_ID_PR }} | ||
CTP_MeClient__ClientSecret: ${{ secrets.CTP_MECLIENT_SECRET_PR }} | ||
CTP_MeClient__ProjectKey: ${{ secrets.CTP_MEPROJECT_KEY_PR }} | ||
|
@@ -105,21 +157,45 @@ jobs: | |
CTP_MeClient__ClientSecret: ${{ secrets.CTP_MECLIENT_SECRET_PR }} | ||
CTP_MeClient__ProjectKey: ${{ secrets.CTP_MEPROJECT_KEY_PR }} | ||
CTP_MeClient__Scope: ${{ secrets.CTP_MESCOPES_PR }} | ||
- run: dotnet test IntegrationTests/commercetools.GraphQL.Api.IntegrationTests --verbosity=normal --no-build -c Release | ||
if: github.event_name == 'push' | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet test IntegrationTests/commercetools.GraphQL.Api.IntegrationTests --verbosity=normal --no-build -c Release | ||
if: github.event_name == 'pull_request' | ||
working-directory: ./commercetools.Sdk | ||
env: | ||
CTP_Client__ClientId: ${{ secrets.CTP_CLIENT_ID_PR }} | ||
CTP_Client__ClientSecret: ${{ secrets.CTP_CLIENT_SECRET_PR }} | ||
CTP_Client__ProjectKey: ${{ secrets.CTP_PROJECT_KEY_PR }} | ||
CTP_Client__Scope: ${{ secrets.CTP_SCOPE_PR }} | ||
CTP_Import__ClientId: ${{ secrets.CTP_CLIENT_ID_PR }} | ||
CTP_Import__ClientSecret: ${{ secrets.CTP_CLIENT_SECRET_PR }} | ||
CTP_Import__ProjectKey: ${{ secrets.CTP_PROJECT_KEY_PR }} | ||
CTP_Import__Scope: ${{ secrets.CTP_SCOPE_PR }} | ||
CTP_Import__ApiBaseAddress: "https://import.europe-west1.gcp.commercetools.com/" | ||
CTP_MeClient__ClientId: ${{ secrets.CTP_MECLIENT_ID_PR }} | ||
CTP_MeClient__ClientSecret: ${{ secrets.CTP_MECLIENT_SECRET_PR }} | ||
CTP_MeClient__ProjectKey: ${{ secrets.CTP_MEPROJECT_KEY_PR }} | ||
CTP_MeClient__Scope: ${{ secrets.CTP_MESCOPES_PR }} | ||
|
||
artifacts: | ||
name: Create artifacts | ||
runs-on: ubuntu-latest | ||
needs: [unittests, integrationtests] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
# Authenticates packages to push to GPR | ||
- uses: actions/setup-dotnet@v1 | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '3.1' | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
source-url: https://nuget.pkg.github.com/commercetools/index.json | ||
env: | ||
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: ./patch_csproj.rb --version 0.1.0-alpha-${{ github.run_number }} --patch **/*.csproj | ||
- run: dotnet tool restore | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet restore --configfile Nuget.config --packages ../packages | ||
working-directory: ./commercetools.Sdk | ||
- run: dotnet build --no-restore --source ../packages -c Release | ||
|
@@ -131,7 +207,7 @@ jobs: | |
run: ls -la pack | ||
- name: Publish Nuget to GitHub registry | ||
if: github.ref == 'refs/heads/master' | ||
run: dotnet nuget push "pack/*.nupkg" -k ${GITHUB_TOKEN} -s https://nuget.pkg.github.com/commercetools/index.json --skip-duplicate --no-symbols true | ||
run: dotnet nuget push "pack/*.nupkg" -k ${GITHUB_TOKEN} -s https://nuget.pkg.github.com/commercetools/index.json --skip-duplicate --no-symbols | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/upload-artifact@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- 'gen-sdk-updates' | ||
- 'after-release' | ||
|
||
name: Create Changes PR | ||
|
||
|
@@ -12,9 +13,47 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
steps: | ||
# Get GitHub token via the CT SDKs App | ||
- name: Generate GitHub token (via CT SDKs App) | ||
id: generate_github_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.CT_SDKS_APP_ID }} | ||
private-key: ${{ secrets.CT_SDKS_APP_PEM }} | ||
|
||
- name: Get App user | ||
id: get_app_user | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }} | ||
run: | | ||
export GH_APP_USER=`gh api /users/ct-sdks%5Bbot%5D | jq .id` | ||
echo "email=${GH_APP_USER}+ct-sdks[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: jenschude/[email protected] | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate_github_token.outputs.token }} | ||
|
||
- uses: jenschude/auto-create-pr-action@a5369414c74963e6ec065dab49066d3711b8c1db | ||
if: github.ref_name == 'gen-sdk-updates' | ||
with: | ||
request_title: "Update generated SDKs" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_token: ${{ steps.generate_github_token.outputs.token }} | ||
label: automerge | ||
request_body: | | ||
- [ ] Changeset added | ||
### Features | ||
### Fixes | ||
### Breaking changes | ||
- uses: jenschude/auto-create-pr-action@a5369414c74963e6ec065dab49066d3711b8c1db | ||
if: github.ref_name == 'after-release' | ||
with: | ||
request_title: "Update changelog" | ||
github_token: ${{ steps.generate_github_token.outputs.token }} | ||
label: automerge | ||
request_body: | | ||
Changelog updates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
unittests: | ||
name: Build Docs | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Support longpaths | ||
run: git config --global core.longpaths true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: sdk | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: doc | ||
ref: gh-pages | ||
|
||
- uses: ssciwr/doxygen-install@022351b889a5d2639382a0d55a1834a413ec6a23 | ||
with: | ||
version: "1.9.8" | ||
|
||
- name: Generate Doxygen Documentation | ||
run: doxygen doxygen_config | ||
shell: bash | ||
working-directory: sdk | ||
env: | ||
PROJECT_NUMBER: ${{ github.ref_name }} | ||
|
||
- run: find . -type f -name '*-members.html' -exec rm -f {} + | ||
working-directory: sdk | ||
shell: bash | ||
|
||
- run: rsync -r --delete ./sdk/build_docs/ ./doc/docs | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
repository: doc | ||
commit_message: "Update docs" | ||
commit_user_name: automation-commercetools | ||
commit_user_email: [email protected] | ||
commit_author: Auto Mation <[email protected]> |
Oops, something went wrong.