From af166cccb98ef2ec7627e9a77df178640a4077b5 Mon Sep 17 00:00:00 2001 From: Johan Date: Fri, 23 Aug 2024 15:09:41 +0200 Subject: [PATCH] fix ci --- .github/workflows/publish.yml | 7 +++---- .github/workflows/test.yml | 7 +++---- package.json | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 43304a6..491ba4a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,10 +7,9 @@ jobs: if: contains(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 13 + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: bun install - run: yarn - run: yarn test - run: yarn build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c80d09..7bc52f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,9 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 14 + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: bun install - run: yarn - run: yarn build - run: yarn test diff --git a/package.json b/package.json index ef8fd24..7f4f77b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "koa" ], "scripts": { - "test": "rm -rf dist && jest --verbose", + "test": "bun test", "build": "tsc" }, "main": "dist/index.js",