-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds Justfile * Adds an initial local dev setup script * words * Add github actions to install just and share the base setup between everything * fix ordering * fix indent
- Loading branch information
Showing
4 changed files
with
64 additions
and
17 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,18 @@ | ||
name: Setup | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '^1.22' | ||
|
||
- name: Setup Just | ||
uses: extractions/setup-just@v1 | ||
with: | ||
just-version: 1.5.0 |
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,17 @@ | ||
set positional-arguments | ||
|
||
build-contracts: | ||
forge --version | ||
forge build --sizes --root ./contracts | ||
|
||
build-go: | ||
go build ./... | ||
|
||
test-contracts: | ||
forge test -vvv --root ./contracts | ||
|
||
test-go: | ||
go test ./... -v | ||
|
||
start: | ||
go 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
################## | ||
# Just Setup # | ||
################## | ||
|
||
echo "Checking just setup" | ||
|
||
if ! command -v just > /dev/null 2>&1; then | ||
# create ~/bin | ||
mkdir -p ~/bin | ||
|
||
# download and extract just to ~/bin/just | ||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin | ||
|
||
# add `~/bin` to your path | ||
export PATH="$PATH:$HOME/bin" | ||
|
||
echo "just has been installed" | ||
else | ||
echo "skipping just install, it already exists." | ||
fi |