Skip to content

Commit

Permalink
ci: add go env
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed May 16, 2024
1 parent 1293ef2 commit 3205ad3
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/software-upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,19 @@ jobs:
key: ${{ runner.os }}-chain-init-${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-create-second-validator.outputs.cache-hit != 'true'

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
if: steps.cache-create-second-validator.outputs.cache-hit != 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
if: steps.cache-create-second-validator.outputs.cache-hit != 'true'

- name: Restore new binary from cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -523,6 +536,19 @@ jobs:
key: ${{ runner.os }}-create-second-validator-${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-prepare-validator-data.outputs.cache-hit != 'true'

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
if: steps.cache-prepare-validator-data.outputs.cache-hit != 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
if: steps.cache-prepare-validator-data.outputs.cache-hit != 'true'

- name: Restore new binary from cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -589,6 +615,19 @@ jobs:
key: ${{ runner.os }}-prepare-validator-data-${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-submit-new-proposal.outputs.cache-hit != 'true'

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
if: steps.cache-submit-new-proposal.outputs.cache-hit != 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
if: steps.cache-submit-new-proposal.outputs.cache-hit != 'true'

- name: Restore new binary from cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -654,6 +693,19 @@ jobs:
key: ${{ runner.os }}-submit-new-proposal-${{ needs.retrieve-latest-tag.outputs.LATEST_TAG }}
if: steps.cache-upgrade-to-new-binary.outputs.cache-hit != 'true'

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
if: steps.cache-upgrade-to-new-binary.outputs.cache-hit != 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
if: steps.cache-upgrade-to-new-binary.outputs.cache-hit != 'true'

- name: Restore new binary from cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -694,6 +746,17 @@ jobs:
/home/runner/.elys2
key: ${{ needs.build-new-binary.outputs.CACHE_KEY }}-upgrade-to-new-binary

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"

- name: Create new snapshot file
run: |
SANITIZED_HEAD_REF=${{ github.head_ref || github.ref }}
Expand Down

0 comments on commit 3205ad3

Please sign in to comment.