Skip to content

Commit

Permalink
Fix to cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe committed Aug 22, 2023
1 parent 5eb94c2 commit ebf2dd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/templates/build.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ deploy-cluster:
AtlasPrivateKey: #@ secret_AtlasPrivateKey
#@ end

#@ def cleanupBaas(dependencies = []):
#@ def cleanupBaas(dependencies = [], targets = []):
#@ needs = ["deploy-cluster"]
#@ differentiators = []
#@ for dependency in dependencies:
#@ needs.append(getJobName("test", dependency))
#@ differentiators.append('"' + getJobName("", dependency) + '"')
#@ end
#@ for target in targets:
#@ differentiators.append('"' + getJobName("", target) + '"')
#@ end
cleanup-cluster:
uses: ./.github/workflows/cleanup-baas.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/templates/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
dashboard-path: dashboard.charts
nuget-package: ${{ github.workspace }}/Realm/packages/Realm.${{ needs.build-packages.outputs.package_version }}.nupkg
- #@ uploadArtifacts("dashboard.charts", "dashboard.charts", 30)
_: #@ template.replace(cleanupBaas([".NET Framework", "Code Coverage", "UWP Managed", "Xamarin.macOS", "iOS", "Android", "MacCatalyst"]))
_: #@ template.replace(cleanupBaas(dependencies = [".NET Framework", "Code Coverage", "UWP Managed", "MacOS", "iOS", "Android"], targets=[".NET Framework", "Code Coverage", "UWP Managed", "Xamarin.macOS", "iOS", "Android", "MacCatalyst"]))
2 changes: 1 addition & 1 deletion .github/templates/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
uses: ./.github/workflows/test-weaver.yml
name: Test
_: #@ template.replace(runTests("Code Coverage"))
_: #@ template.replace(cleanupBaas(["Code Coverage"]))
_: #@ template.replace(cleanupBaas(dependencies = ["Code Coverage"], targets = ["Code Coverage"]))
verify-namespaces:
runs-on: ubuntu-latest
name: Verify Namespaces
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,9 @@ jobs:
- test-net-framework
- test-code-coverage
- test-uwp-managed
- test-xamarinmacos
- test-macos
- test-ios
- test-android
- test-maccatalyst
with:
differentiators: '["net-framework", "code-coverage", "uwp-managed", "xamarinmacos", "ios", "android", "maccatalyst"]'
clusterName: ${{ needs.deploy-cluster.outputs.clusterName }}
Expand Down

0 comments on commit ebf2dd6

Please sign in to comment.