-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: divide workflows into reusable pieces
- Loading branch information
1 parent
c732fad
commit 71ac4c1
Showing
5 changed files
with
62 additions
and
77 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Checkout | ||
description: Clones the repository at ${{ github.sha }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Install Dependencies | ||
description: Sets up Node and its package manager, then installs all dependencies | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install package manager | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.6.1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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 |