Skip to content

Commit

Permalink
restore readme and workflow to work with bun
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Jun 6, 2024
1 parent 3461f13 commit 9c95a48
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,25 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Set up Node.js 🍞
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Bun (via Bun action) 🍞
uses: oven-sh/setup-bun@v1
- name: Enable Corepack
run: corepack enable

- name: Set Yarn version to Berry
run: corepack prepare [email protected] --activate

- name: Install dependencies
run: bun install
run: yarn install

- name: Build auto-utils package 🔧
run: bun run --filter '@autonomys/auto-utils' build
run: yarn workspace @autonomys/auto-utils build

- name: Build all packages 🔧
run: bun run build
run: yarn build

- name: Run tests 🧪
run: bun test
run: yarn test
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The repository is organized as follows:
## Requirements

- Node.js
- [Bun 1.0.0 or higher](https://bun.sh/docs/installation#installing)
- Yarn 4

## Setup

Expand All @@ -25,23 +25,27 @@ The repository is organized as follows:

`cd auto-sdk`

3. **Install dependencies:**
3. **Set Yarn to use the Berry version:**

`bun install`
`yarn set version berry`

4. **Install dependencies:**

`yarn install`

## Scripts

### Build

To build all packages:

`bun build`
`yarn run build`

### Test

To run tests for all packages:

`bun test`
`yarn run test`

### Localhost testing

Expand Down

0 comments on commit 9c95a48

Please sign in to comment.