mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Run tests in CI for bun-linux-aarch64
This commit is contained in:
25
.github/workflows/bun-linux-aarch64.yml
vendored
25
.github/workflows/bun-linux-aarch64.yml
vendored
@@ -128,3 +128,28 @@ jobs:
|
||||
name: "Canary (${{github.sha}})"
|
||||
tag: "canary"
|
||||
artifacts: "${{runner.temp}}/release/bun-${{matrix.tag}}.zip,${{runner.temp}}/release/bun-${{matrix.tag}}-profile.zip"
|
||||
linux-test:
|
||||
name: linux-aarch64-test
|
||||
needs: [linux]
|
||||
runs-on: linux-arm64
|
||||
timeout-minutes: 10
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/bun-test
|
||||
steps:
|
||||
- id: checkout
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- id: setup
|
||||
name: Setup
|
||||
uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: ${{github.sha}}
|
||||
- id: install
|
||||
name: Install
|
||||
run: bun install
|
||||
- id: test
|
||||
name: Test
|
||||
run: bun run test
|
||||
|
||||
@@ -22,9 +22,13 @@ async function runTest(path: string): Promise<void> {
|
||||
const name = path.replace(cwd, "").slice(1);
|
||||
const runner = await spawn({
|
||||
cwd,
|
||||
cmd: ["bun", "wiptest", path],
|
||||
cmd: ["bun", "test", path],
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
env: {
|
||||
...process.env,
|
||||
FORCE_COLOR: "1",
|
||||
}
|
||||
});
|
||||
const exitCode = await Promise.race([
|
||||
new Promise((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user