Skip to content

Commit 43a7261

Browse files
committed
try to fix bun ci
1 parent 30a7888 commit 43a7261

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ jobs:
2121
- uses: oven-sh/setup-bun@v2
2222
with:
2323
bun-version: ${{matrix.js[1]}}
24-
no-cache: true
2524
if: ${{matrix.js[0] == 'bun'}}
2625
- run: make deps lint test
2726
if: ${{matrix.js[0] == 'node'}}
2827
- run: bun install && bunx tsdown && chmod +x dist/index.js && bun test
2928
if: ${{matrix.js[0] == 'bun'}}
30-
env:
31-
BUN: "true"

index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {readFileSync, mkdtempSync, readdirSync} from "node:fs";
55
import {writeFile, readFile, rm} from "node:fs/promises";
66
import {fileURLToPath} from "node:url";
77
import {tmpdir} from "node:os";
8-
import {env} from "node:process";
8+
import {env, versions} from "node:process";
99
import type {Server} from "node:http";
1010
import type {Service, Protocol} from "restana";
1111
import {npmTypes, poetryTypes, uvTypes, goTypes} from "./utils.ts";
@@ -178,7 +178,7 @@ test("empty", async () => {
178178
expect(stdout).toContain("No dependencies");
179179
});
180180

181-
if (env.CI && !env.BUN) {
181+
if (env.CI && !versions.bun) {
182182
test("global", async () => {
183183
await spawn("npm", ["i", "-g", "."]);
184184
const {stdout, stderr} = await spawn("updates", [

0 commit comments

Comments
 (0)