From 1bbaf512796744ffe9602f458a201f7dfa9f47f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Mon, 24 Jun 2024 05:39:29 +0900 Subject: [PATCH] chore(ci): enable lcov reporter for Bun test (#3022) --- .github/workflows/ci.yml | 9 ++++++--- bunfig.toml | 7 ++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cfe7c30..21f05169 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: node-version: '20.x' - uses: oven-sh/setup-bun@v1 with: - bun-version: '1.0.25' + bun-version: '1.1.16' - run: bun install - run: bun run format - run: bun run lint @@ -92,9 +92,12 @@ jobs: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v1 with: - bun-version: '1.0.25' + bun-version: '1.1.16' - run: bun run test:bun - + - uses: actions/upload-artifact@v4 + with: + name: coverage-bun + path: coverage/ fastly: name: 'Fastly Compute' runs-on: ubuntu-latest diff --git a/bunfig.toml b/bunfig.toml index 1fe90030..f50a937d 100644 --- a/bunfig.toml +++ b/bunfig.toml @@ -1,2 +1,7 @@ [install.lockfile] -print = "yarn" \ No newline at end of file +print = "yarn" + +[test] +coverage = true +coverageReporter = ["text", "lcov"] +coverageDir = "coverage/raw/bun"