From ddb2c4808cd3261b091e46095c5fadfd1374745e Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 8 Nov 2023 22:22:36 -0800 Subject: [PATCH] Update GitHub Actions workflows. (#207) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 867ded8b2cb519483ee9e9cd51815d508e91e75e. --- .devcontainer/Dockerfile | 12 ++++++++++++ .devcontainer/devcontainer.json | 16 ++++++++++++++++ .github/workflows/command-dispatch.yml | 1 + .github/workflows/license.yml | 1 + .github/workflows/lint.yml | 1 + .github/workflows/master.yml | 5 +++-- .github/workflows/prerelease.yml | 5 +++-- .github/workflows/pull-request.yml | 1 + .github/workflows/release.yml | 5 +++-- .github/workflows/resync-build.yml | 1 + .github/workflows/run-acceptance-tests.yml | 15 ++++++++------- devbox.json | 19 +++++++++++++++++++ 12 files changed, 69 insertions(+), 13 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 devbox.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..7d46cd80 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,12 @@ +FROM jetpackio/devbox:latest + +# Installing your devbox project +WORKDIR /code +COPY devbox.json devbox.json +COPY devbox.lock devbox.lock +RUN sudo chown -R "${DEVBOX_USER}:${DEVBOX_USER}" /code + + +RUN devbox run -- echo "Installed Packages." + +RUN devbox shellenv --init-hook >> ~/.profile diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..e7ae9f11 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,16 @@ +{ + "name": "Devbox Remote Container", + "build": { + "dockerfile": "./Dockerfile", + "context": ".." + }, + "customizations": { + "vscode": { + "settings": {}, + "extensions": [ + "jetpack-io.devbox" + ] + } + }, + "remoteUser": "devbox" +} \ No newline at end of file diff --git a/.github/workflows/command-dispatch.yml b/.github/workflows/command-dispatch.yml index f528ed88..2decad29 100644 --- a/.github/workflows/command-dispatch.yml +++ b/.github/workflows/command-dispatch.yml @@ -7,6 +7,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 3eac5106..c6a040a6 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -13,6 +13,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2e94b57e..dbfd34bd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,6 +12,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 1e4a92be..ddf22379 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -7,6 +7,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x @@ -78,7 +79,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: @@ -398,7 +399,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index eb6b68ac..2f506e1e 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -8,6 +8,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x @@ -79,7 +80,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: @@ -327,7 +328,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 66f3cb30..d5e3ce1c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -7,6 +7,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9b9ea05..ebec6577 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x @@ -78,7 +79,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: @@ -373,7 +374,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/resync-build.yml b/.github/workflows/resync-build.yml index 081768af..fec3e774 100644 --- a/.github/workflows/resync-build.yml +++ b/.github/workflows/resync-build.yml @@ -9,6 +9,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 38dcfa84..bb880121 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -8,6 +8,7 @@ env: 3.1.301 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GOVERSION: 1.21.x + GRADLEVERSION: "7.6" JAVAVERSION: "11" NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODEVERSION: 20.x @@ -83,7 +84,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: @@ -243,17 +244,17 @@ jobs: # # GitHub documents `jobs.result` as: # - # The result of a job in the reusable workflow. Possible values are success, - # failure, cancelled, or skipped. + # 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. + # 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. + # 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) && @@ -324,7 +325,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - gradle-version: "7.6" + gradle-version: ${{ env.GRADLEVERSION }} - name: Download provider + tfgen binaries uses: actions/download-artifact@v2 with: diff --git a/devbox.json b/devbox.json new file mode 100644 index 00000000..e10080eb --- /dev/null +++ b/devbox.json @@ -0,0 +1,19 @@ +{ + "packages": [ + "go@1.21.", + "nodejs@20.", + "python3@3.9", + "dotnet-sdk@6.0.", + "gradle_7@7.6" + ], + "shell": { + "init_hook": [ + "export PATH=\"$(pwd)/bin/:$PATH\"" + ], + "scripts": { + "test": [ + "echo \"Error: no test specified\" && exit 1" + ] + } + } +}