Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanb committed Jul 11, 2024
1 parent d522f05 commit 49d8cff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lib-ui-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
node_registry_url: 'https://npm.pkg.github.com'
node_scope: '@potatoes'
node_cache: 'npm'
install_command: 'npm ci'
build_command: 'npm run build -w packages/lib-ui'
test_command: 'npm run test -w packages/lib-ui'
install_workspaces: '-w packages/lib-ui'
build_run_script: 'build -w packages/lib-ui'
test_run_script: 'test -w packages/lib-ui'
19 changes: 10 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ on:
required: false
default: 'npm'
type: string
install_command:
description: 'Dependency install command to run'
install_workspaces:
description: 'Appending arguemnts to `npm ci` command to minimize workspace dependency installs. i.e. `-w packages/test -w packages/test2`'
required: false
default: 'npm ci'
default: ''
type: string
build_command:
build_run_script:
description: 'Build command to run.'
required: false
default: ''
type: string
test_command:
test_run_script:
description: 'Test command to run; defaults to `npm run test`'
required: false
default: npm run test
Expand All @@ -52,11 +52,12 @@ jobs:
cache: ${{ inputs.node_cache }}
registry-url: ${{ inputs.node_registry_url }}
scope: ${{ inputs.node_scope }}
- run: ${{ inputs.install_command }}
- name: Install Dependencies
run: npm ci ${{ inputs.install_workspaces }}
# if using private npm access, provide npm auth token here.
# env:
# NODE_AUTH_TOKEN: ${{ secrets.node_auth_token }}
- name: Build
if: ${{ inputs.build_command != '' }}
run: ${{ inputs.build_command }}
- run: ${{ inputs.test_command }}
if: ${{ inputs.build_run_script != '' }}
run: npm run ${{ inputs.build_run_script }}
- run: ${{ inputs.test_run_script }}

0 comments on commit 49d8cff

Please sign in to comment.