Skip to content
Merged
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
32 changes: 1 addition & 31 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,9 @@ jobs:
options: --ulimit core=-1 --ulimit memlock=-1:-1
steps:
- uses: actions/checkout@v4
- name: Install Bun
run: |
set -e # Exit on error
# GitHub Actions containers set HOME=/github/home
export BUN_INSTALL="/github/home/.bun"
echo "Installing Bun to $BUN_INSTALL..."
curl -fsSL https://bun.sh/install | bash
echo "Checking if Bun was installed..."
ls -la /github/home/.bun/bin/ || echo "Bun directory not found at /github/home/.bun/bin/"
# Try alternative location if primary fails
if [ ! -f "/github/home/.bun/bin/bun" ]; then
echo "Bun not at /github/home/.bun/bin/bun, checking $HOME/.bun/bin/bun..."
ls -la $HOME/.bun/bin/ || echo "Bun not at $HOME/.bun/bin/ either"
if [ -f "$HOME/.bun/bin/bun" ]; then
cp $HOME/.bun/bin/bun /usr/local/bin/bun
else
echo "ERROR: Could not find Bun binary after installation"
exit 1
fi
else
cp /github/home/.bun/bin/bun /usr/local/bin/bun
fi
chmod +x /usr/local/bin/bun
/usr/local/bin/bun --version
- uses: oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2
- name: Install packages
run: npm install
- name: Verify Bun is available
run: |
echo "Checking Bun availability..."
ls -la /usr/local/bin/bun || echo "/usr/local/bin/bun not found"
which bun || echo "bun not in PATH"
/usr/local/bin/bun --version || echo "Cannot run /usr/local/bin/bun"
bun --version || echo "Cannot run bun directly"
- name: Test
run: npm test
- name: Set version to match tag
Expand Down
25 changes: 1 addition & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,7 @@ jobs:
options: --ulimit core=-1 --ulimit memlock=-1:-1
steps:
- uses: actions/checkout@v4
- name: Install Bun
run: |
set -e # Exit on error
# GitHub Actions containers set HOME=/github/home
export BUN_INSTALL="/github/home/.bun"
echo "Installing Bun to $BUN_INSTALL..."
curl -fsSL https://bun.sh/install | bash
echo "Checking if Bun was installed..."
ls -la /github/home/.bun/bin/ || echo "Bun directory not found at /github/home/.bun/bin/"
# Try alternative location if primary fails
if [ ! -f "/github/home/.bun/bin/bun" ]; then
echo "Bun not at /github/home/.bun/bin/bun, checking $HOME/.bun/bin/bun..."
ls -la $HOME/.bun/bin/ || echo "Bun not at $HOME/.bun/bin/ either"
if [ -f "$HOME/.bun/bin/bun" ]; then
cp $HOME/.bun/bin/bun /usr/local/bin/bun
else
echo "ERROR: Could not find Bun binary after installation"
exit 1
fi
else
cp /github/home/.bun/bin/bun /usr/local/bin/bun
fi
chmod +x /usr/local/bin/bun
/usr/local/bin/bun --version
- uses: oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2
- name: Install npm packages
run: npm install
- name: Unit Test (includes Bun test via posttest)
Expand Down
Loading