Run tests in CI for bun-linux-aarch64

This commit is contained in:
Ashcon Partovi
2023-03-01 14:31:28 -08:00
parent ff51a253e2
commit ef56961007
2 changed files with 30 additions and 1 deletions

View File

@@ -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

View File

@@ -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) => {