Skip to content

Commit

Permalink
chore: update workflow to use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Sep 10, 2023
1 parent c746747 commit b6efecb
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Setup project
description: Prepare the project for any CI action

inputs:
node-version:
description: Version of Bun to install
default: 1.x

node-version:
description: Version of Node to install
default: 18.x
Expand All @@ -17,28 +21,22 @@ inputs:
runs:
using: composite
steps:
- name: 🏗 Setup Node with cache
if: ${{ inputs.without-cache != 'true' }}
uses: actions/setup-node@v3
- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: ${{ inputs.node-version }}
cache: npm
cache-dependency-path: |
package-lock.json
test/fixture/package-lock.json
bun-version: ${{ inputs.bun-version }}

- name: 🏗 Setup Node without cache
if: ${{ inputs.without-cache == 'true' }}
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: 📦 Install dependencies
run: npm ci
run: bun --frozen-lockfile
shell: bash

- name: 📦 Install fixture
if: ${{ inputs.with-fixture == 'true' }}
run: npm ci
run: bun --frozen-lockfile
working-directory: test/fixture
shell: bash

0 comments on commit b6efecb

Please sign in to comment.