Skip to content

Commit

Permalink
Update Java to v0.9.5 and add auto-aliasing (#202)
Browse files Browse the repository at this point in the history
* Update Java to v0.9.5 and add auto-aliasing

* Run go mod tidy

* Test sentinel

* Revert "[internal] Update GitHub Actions workflow files (#200)"

This reverts commit 16cb2a6.
  • Loading branch information
iwahbe authored Sep 1, 2023
1 parent 16cb2a6 commit c85132d
Show file tree
Hide file tree
Showing 25 changed files with 240 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -370,7 +370,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -370,7 +370,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/resync-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
45 changes: 36 additions & 9 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.21.x
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODEVERSION: 16.x
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down Expand Up @@ -260,16 +260,43 @@ jobs:
fields: repo,commit,author,action
status: ${{ job.status }}
sentinel:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: sentinel
# We would like to be able to specify `sentinel` as the only required job for this
# workflow. To do that, we need `sentinel` to succeed only when it is safe to
# merge and fail in all other cases.
#
# We can't use the default `if: success()`, since GitHub interprets a skipped job as a
# success, and by default a dependee job failing will skip a dependent job. That means
# if a test step fails, then it will skip `sentinel` so GitHub will register
# `sentinel` as succeeded.
#
# GitHub documents `jobs.result` as:
#
# The result of a job in the reusable workflow. Possible values are success,
# failure, cancelled, or skipped.
#
# GitHub documents `cancelled()` as:
#
# Returns true if the workflow was canceled.
#
# Combining these terms gives us an intuitive definition of success:
#
# We have succeeded when no dependent workflow has failed and the job was
# not cancelled.
#
if: (github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository) &&
! cancelled()
needs:
- test
- lint
runs-on: ubuntu-latest
steps:
- name: Is workflow a success
run: echo yes
- name: Workflow is not a success
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
run: exit 1
- name: Workflow is a success
run: echo "🎉🎈🎉🎈🎉"
test:
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
Expand All @@ -296,7 +323,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
cache-dependency-path: |
sdk/go.sum
go-version: 1.21.x
go-version: 1.20.1
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TFGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
VERSION := $(shell pulumictl get version)
JAVA_GEN := pulumi-java-gen
JAVA_GEN_VERSION := v0.5.4
JAVA_GEN_VERSION := v0.9.5
TESTPARALLELISM := 10
WORKING_DIR := $(shell pwd)

Expand Down
2 changes: 1 addition & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/pulumi/pulumi-kafka/examples/v3

go 1.21
go 1.20

require github.com/pulumi/pulumi/pkg/v3 v3.17.0

Expand Down
Loading

0 comments on commit c85132d

Please sign in to comment.