Skip to content

Commit

Permalink
ci: switch Yarn to Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 6, 2024
1 parent 1f5e0ef commit 51d2ccb
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -17,24 +17,19 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
id: yarn-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: oven-sh/setup-bun@v1

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

- name: Build the library
run: yarn prepack
run: bun prepack

- name: Run unit tests
run: yarn test:unit
run: bun test:unit

- name: Run snapshot tests
run: yarn test:snapshot
run: bun test:snapshot

# Only trigger deploy if previous steps pass and branch is main
- name: Deploy docs

0 comments on commit 51d2ccb

Please sign in to comment.