Skip to content

Commit

Permalink
chore: Updated workflows pnpm -> bun.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankeos committed Sep 28, 2024
1 parent e032e1c commit f18ee92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Setup Node.js environment
uses: actions/setup-node@v3
Expand All @@ -25,11 +27,11 @@ jobs:
# "git restore ." discards changes to package-lock.json
- name: Install dependencies
run: |
pnpm install --no-frozen-lockfile --ignore-scripts
bun install --no-frozen-lockfile --ignore-scripts
git restore .
- name: Format
run: pnpm run format
run: bun run format

- name: Add, Commit and Push
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,26 @@ jobs:
with:
fetch-depth: 2

- uses: pnpm/action-setup@v2.2.4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
cache: bun

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

- name: Build
run: pnpm run build
run: bun run build

- name: Test
run: pnpm run test
run: bun run test
env:
CI: true

- name: Lint
run: pnpm run lint
run: bun run lint

0 comments on commit f18ee92

Please sign in to comment.