Skip to content

Commit

Permalink
allow root to be configured
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Nov 8, 2023
1 parent 40c5671 commit 0fe38d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'Dependencies'
description: 'Installs and builds dependencies for Cauldron'
inputs:
root:
type: boolean
default: true
packages-react:
type: boolean
default: false
Expand All @@ -19,6 +22,9 @@ runs:
- name: Install root dependencies
run: yarn install --frozen-lockfile
shell: bash
# Note: Checking for both boolean and string true values due to referenced bug:
# https://github.com/actions/runner/issues/2238
if: ${{ inputs.root == true || inputs.root == 'true' }}
- name: Install packages/react dependencies
run: yarn install --cwd packages/react
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
root: false
packages-react: true
packages-styles: true
- name: Build packages
Expand Down

0 comments on commit 0fe38d1

Please sign in to comment.