Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use bun for test fixtures #229

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ runs:
with:
node-version: ${{ inputs.node-version }}

- name: 🏗 Setup Bun
if: ${{ inputs.with-fixture == 'true' }}
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.x

- name: 📦 Install dependencies
run: npm ci
shell: bash

- name: 📦 Install fixture
if: ${{ inputs.with-fixture == 'true' }}
run: npm ci
run: bun install --yarn --frozen-lockfile
working-directory: test/fixture
shell: bash
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ yarn-debug.log*
yarn-error.log*
yarn.lock

# Specific to fixtures
/test/fixture/package-lock.json
!/test/fixture/yarn.lock

# editors
.idea

Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{
"label": "install-fixtures",
"type": "shell",
"command": "npm install",
"command": "bun install --yarn",
"options": {
"cwd": "${workspaceFolder}/test/fixture"
},
Expand Down
Binary file added test/fixture/bun.lockb
Binary file not shown.
Loading