From 8dcdd1785b06639b54a22abe165e1b0e48797f38 Mon Sep 17 00:00:00 2001 From: Ho3einWave Date: Sun, 29 Sep 2024 15:44:46 +0330 Subject: [PATCH] fix: workflow with bun --- .github/workflows/main.yml | 13 +++++-------- .github/workflows/pr.yml | 8 ++++---- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d959db4..fe6e3c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,16 +7,13 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest - strategy: - matrix: - node: [14, 16, 18] - name: Node ${{ matrix.node }} sample + name: Bun Build steps: - uses: actions/checkout@v3 - name: Run linting rules and tests - uses: actions/setup-node@v3 + uses: oven-sh/setup-bun@v1 with: - node-version: ${{ matrix.node }} - - run: npm ci - - run: npm run build + bun-version: latest + - run: bun install + - run: buh run build diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b77f43d..a6ebd61 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,8 +16,8 @@ jobs: steps: - uses: actions/checkout@v3 - name: Run linting rules and tests - uses: actions/setup-node@v3 + uses: oven-sh/setup-bun@v1 with: - node-version: ${{ matrix.node }} - - run: npm ci - - run: npm run build + bun-version: latest + - run: bun install + - run: buh run build