Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/automation-data-api-differ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod

- name: Detect Changes
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/automation-msgraph-metadata-importer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.21.3'
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: build and run importer-msgraph-metadata
id: import-data
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/automation-regenerate-go-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: ensure goimports is installed
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/automation-regenerate-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.22.7'
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: "Launch SSH Agent"
run: |
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/automation-rest-api-specs-importer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: build and run importer-rest-api-specs
id: import-data
Expand All @@ -41,6 +54,7 @@ jobs:
make tools
make build
make import
make import-data-plane

- name: then commit the diff
id: commit-imported-data
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/automation-version-bumper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: build and run version-bumper
id: bump-versions
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/unit-test-data-api-differ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: run unit tests
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/unit-test-data-api-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: run unit tests
run: |
Expand Down
26 changes: 21 additions & 5 deletions .github/workflows/unit-test-end-to-end-data-plane.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Verify All Resource Manager Services can be Imported and Generated
name: Verify All Data Plane Services can be Imported and Generated
on:
pull_request:
types: ['opened', 'synchronize']
Expand All @@ -9,6 +9,10 @@ on:
- 'tools/generator-go-sdk/**'
- 'tools/importer-rest-api-specs/**'

concurrency:
group: 'unit-test-dp-${{ github.head_ref }}'
cancel-in-progress: true # Long running, always triggers, cancel if further changes are pushed

jobs:
test:
runs-on: custom-linux-xl
Expand All @@ -24,6 +28,18 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod

- name: Install tools
run: |
Expand All @@ -36,7 +52,7 @@ jobs:
make tools
make build
make import-data-plane
# Uncomment after the first data-plane files are present in go-azure-sdk
# - name: "Run the Go SDK Generator"
# run: |
# ./scripts/automation-generate-go-sdk.sh data-plane

- name: "Run the Go SDK Generator"
run: |
./scripts/automation-generate-go-sdk.sh data-plane
21 changes: 21 additions & 0 deletions .github/workflows/unit-test-end-to-end-microsoft-graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,38 @@ on:
- 'tools/generator-go-sdk/**'
- 'tools/importer-msgraph-metadata/**'

concurrency:
group: 'unit-test-graph-${{ github.head_ref }}'
cancel-in-progress: true # Long running, always triggers, cancel if further changes are pushed

jobs:
test:
runs-on: custom-linux-xl
steps:
- name: mount a ramdisk to working dir
run: |
sudo mount -t tmpfs -o size=32G tmpfs $GITHUB_WORKSPACE

- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: recursive

- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: "Build and Run importer-msgraph-metadata"
id: import-data
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/unit-test-end-to-end-resource-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- 'tools/generator-go-sdk/**'
- 'tools/importer-rest-api-specs/**'

concurrency:
group: 'unit-test-rm-${{ github.head_ref }}'
cancel-in-progress: true # Long running, always triggers, cancel if further changes are pushed

jobs:
test:
runs-on: custom-linux-xl
Expand All @@ -25,6 +29,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: "Build and Run importer-rest-api-specs"
id: import-data
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/unit-test-generator-go-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: run unit tests
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/unit-test-generator-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: run unit tests
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/unit-test-rest-api-specs-importer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ jobs:
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: ./.go-version
cache-dependency-path: |
tools/generator-go-sdk/go.mod
tools/data-api-differ/go.mod
tools/wrapper-automation/go.mod
tools/data-api/go.mod
tools/importer-msgraph-metadata/go.mod
tools/data-api-sdk/go.mod
tools/sdk/go.mod
tools/importer-rest-api-specs/go.mod
tools/data-api-repository/go.mod
tools/version-bumper/go.mod
tools/generator-terraform/go.mod


- name: run unit tests
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "JsonWebKey",
"name": "JSONWebKey",
"fields": [
{
"containsDiscriminatedTypeValue": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"nestedItem": {
"type": "Reference",
"nullable": false,
"referenceName": "JsonWebKey",
"referenceName": "JSONWebKey",
"referenceNameIsCommonType": null
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"objectDefinition": {
"type": "Reference",
"nullable": false,
"referenceName": "JsonWebKey",
"referenceName": "JSONWebKey",
"referenceNameIsCommonType": null
},
"optional": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "JsonWebKey",
"name": "JSONWebKey",
"fields": [
{
"containsDiscriminatedTypeValue": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"objectDefinition": {
"type": "Reference",
"nullable": false,
"referenceName": "JsonWebKey",
"referenceName": "JSONWebKey",
"referenceNameIsCommonType": null
},
"optional": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"objectDefinition": {
"type": "Reference",
"nullable": false,
"referenceName": "JsonWebKey",
"referenceName": "JSONWebKey",
"referenceNameIsCommonType": null
},
"optional": false,
Expand Down
Loading