1+ # WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
13env :
24 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
@@ -376,6 +378,61 @@ jobs:
376378 - 16.x
377379 pythonversion :
378380 - " 3.9"
381+ publish_java_sdk :
382+ continue-on-error : true
383+ name : publish_java_sdk
384+ needs : publish
385+ runs-on : ubuntu-latest
386+ steps :
387+ - name : Checkout Repo
388+ uses : actions/checkout@v3
389+ - name : Checkout Scripts Repo
390+ uses : actions/checkout@v3
391+ with :
392+ path : ci-scripts
393+ repository : pulumi/scripts
394+ - name : Unshallow clone for tags
395+ run : git fetch --prune --unshallow --tags
396+ - name : Install Go
397+ uses : actions/setup-go@v2
398+ with :
399+ go-version : ${{matrix.goversion}}
400+ - name : Install pulumictl
401+ uses : jaxxstorm/action-install-gh-release@v1.5.0
402+ with :
403+ repo : pulumi/pulumictl
404+ - name : Install Pulumi CLI
405+ uses : pulumi/action-install-pulumi-cli@v2
406+ - name : Setup Java
407+ uses : actions/setup-java@v3
408+ with :
409+ cache : gradle
410+ distribution : temurin
411+ java-version : ${{matrix.javaversion}}
412+ - name : Download java SDK
413+ uses : actions/download-artifact@v2
414+ with :
415+ name : java-sdk.tar.gz
416+ path : ${{ github.workspace}}/sdk/
417+ - name : Uncompress java SDK
418+ run : tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
419+ ${{github.workspace}}/sdk/java
420+ - name : Set PACKAGE_VERSION to Env
421+ run : echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
422+ $GITHUB_ENV
423+ - name : Publish Java SDK
424+ uses : gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
425+ with :
426+ arguments : publishToSonatype closeAndReleaseSonatypeStagingRepository
427+ build-root-directory : ./sdk/java
428+ gradle-version : 7.4.1
429+ strategy :
430+ fail-fast : true
431+ matrix :
432+ goversion :
433+ - 1.19.x
434+ javaversion :
435+ - " 11"
379436 publish_sdk :
380437 name : publish_sdk
381438 needs : publish
@@ -413,12 +470,6 @@ jobs:
413470 uses : actions/setup-python@v2
414471 with :
415472 python-version : ${{matrix.pythonversion}}
416- - name : Setup Java
417- uses : actions/setup-java@v3
418- with :
419- cache : gradle
420- distribution : temurin
421- java-version : ${{matrix.javaversion}}
422473 - name : Download python SDK
423474 uses : actions/download-artifact@v2
424475 with :
@@ -443,28 +494,11 @@ jobs:
443494 - name : Uncompress nodejs SDK
444495 run : tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C
445496 ${{github.workspace}}/sdk/nodejs
446- - name : Download java SDK
447- uses : actions/download-artifact@v2
448- with :
449- name : java-sdk.tar.gz
450- path : ${{ github.workspace}}/sdk/
451- - name : Uncompress java SDK
452- run : tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
453- ${{github.workspace}}/sdk/java
454497 - run : python -m pip install pip twine
455498 - env :
456499 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
457500 name : Publish SDKs
458501 run : ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
459- - name : Set PACKAGE_VERSION to Env
460- run : echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
461- $GITHUB_ENV
462- - name : Publish Java SDK
463- uses : gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
464- with :
465- arguments : publishToSonatype closeAndReleaseSonatypeStagingRepository
466- build-root-directory : ./sdk/java
467- gradle-version : 7.4.1
468502 - if : failure() && github.event_name == 'push'
469503 name : Notify Slack
470504 uses : 8398a7/action-slack@v3
@@ -479,8 +513,6 @@ jobs:
479513 - 3.1.301
480514 goversion :
481515 - 1.19.x
482- javaversion :
483- - " 11"
484516 nodeversion :
485517 - 16.x
486518 pythonversion :
@@ -562,9 +594,10 @@ jobs:
562594 - name : Install dependencies
563595 run : make install_${{ matrix.language}}_sdk
564596 - name : Install gotestfmt
565- uses : jaxxstorm/action-install-gh-release@v1.5.0
597+ uses : GoTestTools/gotestfmt-action@v2
566598 with :
567- repo : haveyoudebuggedit/gotestfmt
599+ token : ${{ secrets.GITHUB_TOKEN }}
600+ version : v2.4.0
568601 - name : Run tests
569602 run : cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
570603 matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
0 commit comments