-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Update GitHub Actions workflow files
- Loading branch information
1 parent
56bafe9
commit edb9850
Showing
17 changed files
with
457 additions
and
177 deletions.
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
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
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,3 +1,5 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LINODE_TOKEN: ${{ secrets.LINODE_API_TOKEN }} | ||
|
@@ -377,6 +379,61 @@ jobs: | |
- 16.x | ||
pythonversion: | ||
- "3.9" | ||
publish_java_sdk: | ||
continue-on-error: true | ||
name: publish_java_sdk | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Checkout Scripts Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
- name: Publish Java SDK | ||
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
publish_sdk: | ||
name: publish_sdk | ||
needs: publish | ||
|
@@ -414,12 +471,6 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download python SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -444,28 +495,11 @@ jobs: | |
- name: Uncompress nodejs SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C | ||
${{github.workspace}}/sdk/nodejs | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- run: python -m pip install pip twine | ||
- env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
name: Publish SDKs | ||
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }} | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
- name: Publish Java SDK | ||
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
|
@@ -480,8 +514,6 @@ jobs: | |
- 3.1.301 | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
nodeversion: | ||
- 16.x | ||
pythonversion: | ||
|
@@ -561,9 +593,10 @@ jobs: | |
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
uses: jaxxstorm/[email protected] | ||
uses: GoTestTools/gotestfmt-action@v2 | ||
with: | ||
repo: haveyoudebuggedit/gotestfmt | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: v2.4.0 | ||
- name: Run tests | ||
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ | ||
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
|
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,3 +1,5 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LINODE_TOKEN: ${{ secrets.LINODE_API_TOKEN }} | ||
|
@@ -377,6 +379,61 @@ jobs: | |
- 16.x | ||
pythonversion: | ||
- "3.9" | ||
publish_java_sdk: | ||
continue-on-error: true | ||
name: publish_java_sdk | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Checkout Scripts Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
- name: Publish Java SDK | ||
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
publish_sdk: | ||
name: publish_sdk | ||
needs: publish | ||
|
@@ -414,12 +471,6 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download python SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -444,28 +495,11 @@ jobs: | |
- name: Uncompress nodejs SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C | ||
${{github.workspace}}/sdk/nodejs | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- run: python -m pip install pip twine | ||
- env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
name: Publish SDKs | ||
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }} | ||
- name: Set PACKAGE_VERSION to Env | ||
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> | ||
$GITHUB_ENV | ||
- name: Publish Java SDK | ||
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
|
@@ -480,8 +514,6 @@ jobs: | |
- 3.1.301 | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
nodeversion: | ||
- 16.x | ||
pythonversion: | ||
|
@@ -561,9 +593,10 @@ jobs: | |
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
uses: jaxxstorm/[email protected] | ||
uses: GoTestTools/gotestfmt-action@v2 | ||
with: | ||
repo: haveyoudebuggedit/gotestfmt | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: v2.4.0 | ||
- name: Run tests | ||
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ | ||
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
|
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,3 +1,5 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LINODE_TOKEN: ${{ secrets.LINODE_API_TOKEN }} | ||
|
@@ -265,9 +267,10 @@ jobs: | |
- name: Install dependencies | ||
run: make install_${{ matrix.language}}_sdk | ||
- name: Install gotestfmt | ||
uses: jaxxstorm/[email protected] | ||
uses: GoTestTools/gotestfmt-action@v2 | ||
with: | ||
repo: haveyoudebuggedit/gotestfmt | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: v2.4.0 | ||
- name: Run tests | ||
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ | ||
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
|
Oops, something went wrong.