Skip to content

Commit

Permalink
chore: only use bun for non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Sep 10, 2023
1 parent 7039c94 commit 39d1775
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ inputs:
description: If the setup should install the test/fixture files
type: boolean

without-cache:
description: If the Node package cache should not be used
type: boolean

runs:
using: composite
steps:
- name: 🏗 Setup Bun
if: ${{ inputs.with-fixture == 'true' }}
if: ${{ runner.os != 'Windows' && inputs.with-fixture == 'true' }}
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ inputs.bun-version }}
Expand All @@ -37,8 +33,14 @@ runs:
run: npm ci
shell: bash

- name: 📦 Install fixture
if: ${{ inputs.with-fixture == 'true' }}
- name: 📦 Install fixture with Bun
if: ${{ runner.os != 'Windows' && inputs.with-fixture == 'true' }}
run: bun install --frozen-lockfile
working-directory: test/fixture
shell: bash

- name: 📦 Install fixture with npm
if: ${{ runner.os == 'Windows' && inputs.with-fixture == 'true' }}
run: npm ci
working-directory: test/fixture
shell: bash

0 comments on commit 39d1775

Please sign in to comment.