Skip to content

Commit

Permalink
ci: Add assistant-ui build step
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Dec 9, 2024
1 parent 95e1381 commit 8c0c03e
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 189 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
sdk_dotnet: ${{ steps.filter.outputs.sdk_dotnet }}
sdk_go: ${{ steps.filter.outputs.sdk_go }}
sdk_react: ${{ steps.filter.outputs.sdk_react }}
assistant_ui: ${{ steps.filter.outputs.assistant_ui }}
cli: ${{ steps.filter.outputs.cli }}
control_plane: ${{ steps.filter.outputs.control_plane }}
data_connector: ${{ steps.filter.outputs.data_connector }}
Expand All @@ -48,6 +49,8 @@ jobs:
- 'sdk-go/**'
sdk_react:
- 'sdk-react/**'
assistant_ui:
- 'assistant-ui/**'
cli:
- 'cli/**'
control_plane:
Expand Down Expand Up @@ -413,6 +416,29 @@ jobs:
- name: Run tests
run: npm test

build-assistant-ui:
needs: check_changes
if: ${{ needs.check_changes.outputs.assistant_ui == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: assistant-ui
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: assistant-ui/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build

build-load-test-machine-image:
runs-on: ubuntu-latest
needs: check_changes
Expand Down
Loading

0 comments on commit 8c0c03e

Please sign in to comment.