Skip to content

Commit

Permalink
use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Oct 25, 2023
1 parent 282b0a5 commit 143e5fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1,874 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,27 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ['14', 'lts/*', '*']
node-version: ['lts/*', '*']
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 1

- uses: actions/setup-node@v3
- name: Setup Bun
uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
with:
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
bun-version: latest

- name: Install dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies
run: bun install --frozen-lockfile

- name: Lint Source
run: pnpm run --if-present lint
run: bun run --if-present lint

- name: Build Source
run: pnpm run --if-present build
run: bun run --if-present build

- name: Run Tests
run: pnpm run --if-present test
run: bun run --if-present test
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 143e5fe

Please sign in to comment.