From fe8c02f52ecea26534504167f36638e06c79407c Mon Sep 17 00:00:00 2001 From: Dennis Hume Date: Tue, 12 Dec 2023 04:14:27 -0600 Subject: [PATCH] Check --- .github/workflows/release.yml | 3 ++- .github/workflows/test.yml | 18 +++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 931d006..107f030 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: env: # THIS GITHUB_TOKEN IS A REQUIREMENT TO BE ABLE TO WRITE TO GH RELEASES GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOVERSION: 1.21.x jobs: publish_binary: @@ -24,7 +25,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: 1.21.x + go-version: ${{ env.GOVERSION }} - name: Install pulumictl uses: jaxxstorm/action-install-gh-release@v1.5.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0dfcc41..d7eb1bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,5 @@ name: test + on: pull_request: paths: @@ -11,8 +12,8 @@ env: MZ_USER: mz_system MZ_SSLMODE: disable MZ_PORT: 6877 - # THIS GITHUB_TOKEN IS A REQUIREMENT TO BE ABLE TO WRITE TO GH RELEASES - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PYTHONVERSION: 3.9 + GOVERSION: 1.21.x jobs: test: @@ -26,18 +27,13 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: 1.21.x + go-version: ${{ env.GOVERSION }} - - uses: jaxxstorm/action-install-gh-release@v1.5.0 + - uses: actions/setup-python@v2 with: - repo: pulumi/pulumictl - - - run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV + python-version: ${{ env.PYTHONVERSION }} - - uses: goreleaser/goreleaser-action@v2 - with: - version: latest - args: -p 3 release --rm-dist + - uses: pulumi/action-install-pulumi-cli@v2 - run: make build_python