chore: divide workflows into reusable pieces #4
Workflow file for this run
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
name: Install Solana Test Validator | |
description: Downloads and caches an install of the latest Solana Test Validator | |
runs: | |
using: composite | |
steps: | |
- name: Get Test Validator Latest Release | |
id: get-test-validator-version | |
run: echo "version=$(./scripts/get-latest-validator-release-version.sh)" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Cache Test Validator | |
id: cache-test-validator | |
uses: actions/cache@v3 | |
with: | |
path: .solana | |
key: ${{ runner.os }}-test-validator-${{ steps.get-test-validator-version.outputs.version }} | |
- name: Install Test Validator | |
if: steps.cache-test-validator.outputs.cache-hit != 'true' | |
run: scripts/setup-test-validator.sh |