Skip to content

Commit

Permalink
feat: use Bun instead of Yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Apr 2, 2024
1 parent f29eecb commit 7877c91
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1,356 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,19 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install Bun.sh"
uses: oven-sh/setup-bun@v1

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"

- name: "Install Node.js"
uses: "actions/setup-node@v3"
with:
cache: "yarn"
node-version: "lts/*"

- name: "Install the Node.js dependencies"
run: "yarn install --immutable"
run: "bun install --immutable"

- name: "Lint the contracts"
run: "yarn lint"
run: "bun lint"

- name: "Add lint summary"
run: |
Expand All @@ -41,13 +38,19 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
with:
submodules: "recursive"
uses: "actions/checkout@v4"

- name: "Install Bun.sh"
uses: oven-sh/setup-bun@v1

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"

- name: "Install the Node.js dependencies"
run: "bun install --immutable"
with:
submodules: "recursive"

- name: "Build the contracts and print their size"
run: "forge build --sizes"

Expand All @@ -60,13 +63,19 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
submodules: "recursive"

- name: "Install Bun.sh"
uses: oven-sh/setup-bun@v1

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"

- name: "Install the Node.js dependencies"
run: "bun install --immutable"

- name: "Run the tests"
run: "forge test"

Expand Down
Loading

0 comments on commit 7877c91

Please sign in to comment.