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
2 changes: 1 addition & 1 deletion .github/actions/browse/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
bun-version:
description: "Bun version to install"
required: false
default: "latest"
default: "1.3.11"
browser:
description: "Patchright browser channel to install"
required: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> "$GITHUB_PATH"
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.11

- name: Install dependencies
run: bun install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> "$GITHUB_PATH"
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.11

- name: Install dependencies
run: bun install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> "$GITHUB_PATH"
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.11

- name: Install dependencies
run: bun install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Inputs:
|-------|---------|-------------|
| `command` | `healthcheck` | Browse command to run |
| `config` | `browse.config.json` | Path to the config file in your repository |
| `bun-version` | `latest` | Bun version installed by the action |
| `bun-version` | `1.3.11` | Bun version installed by the action |
| `browser` | `chrome` | Patchright browser channel installed by the action |

The action executes `browse` from the action checkout, but runs it against your repository workspace so relative config paths, flows, and output files still behave normally.
Expand Down
8 changes: 6 additions & 2 deletions src/commands/ci-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
import { join } from "node:path";
import type { Response } from "../protocol.ts";

const BUN_VERSION = "1.3.11";

const GITHUB_ACTIONS_TEMPLATE = `name: Browse QA

on:
Expand All @@ -18,6 +20,8 @@ jobs:

- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${BUN_VERSION}

- name: Install dependencies
run: bun install
Expand All @@ -37,7 +41,7 @@ jobs:
const GITLAB_CI_TEMPLATE = `browse-qa:
image: node:20
before_script:
- curl -fsSL https://bun.sh/install | bash
- curl -fsSL https://bun.sh/install | bash -s -- bun-v${BUN_VERSION}
- export PATH="$HOME/.bun/bin:$PATH"
- bun install
- ./setup.sh
Expand All @@ -58,7 +62,7 @@ jobs:
- checkout
- run:
name: Install Bun
command: curl -fsSL https://bun.sh/install | bash
command: curl -fsSL https://bun.sh/install | bash -s -- bun-v${BUN_VERSION}
- run:
name: Build browse
command: |
Expand Down
Loading