Skip to content

feat: Merge local bunfig with action scope/registry config #45

feat: Merge local bunfig with action scope/registry config

feat: Merge local bunfig with action scope/registry config #45

Workflow file for this run

name: Setup Bun
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
setup-bun:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
bun-version:
- latest
- canary
- "0.5.6"
#- "9be68ac2350b965037f408ce4d47c3b9d9a76b63"
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
- id: setup-bun
name: Setup Bun
uses: ./
with:
bun-version: ${{ matrix.bun-version }}
- id: verify-bun
name: Verify Bun
run: |
bun --version
setup-bun-from-package-json-version:
runs-on: ${{ matrix.os }}
needs: setup-bun
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup package.json
run: |
echo "$(jq '. += {"packageManager": "bun@1.0.0"}' package.json)" > package.json
- name: Setup Bun
uses: ./
- name: Verify Bun
run: |
bun --version
tests:
name: Run tests
needs: setup-bun
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Bun
uses: ./
- name: Run tests
run: bun test --coverage