Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,38 @@ jobs:
name: Detect Changes
runs-on: ubuntu-latest
outputs:
services: ${{ steps.filter.outputs.services || steps.manual.outputs.services }}
libs: ${{ steps.filter.outputs.libs || steps.manual.outputs.libs }}
frontend: ${{ steps.filter.outputs.frontend || steps.manual.outputs.frontend }}
infrastructure: ${{ steps.filter.outputs.infrastructure || steps.manual.outputs.infrastructure }}
services: ${{ steps.filter_pr.outputs.services || steps.filter_merge.outputs.services || steps.manual.outputs.services }}
libs: ${{ steps.filter_pr.outputs.libs || steps.filter_merge.outputs.libs || steps.manual.outputs.libs }}
frontend: ${{ steps.filter_pr.outputs.frontend || steps.filter_merge.outputs.frontend || steps.manual.outputs.frontend }}
infrastructure: ${{ steps.filter_pr.outputs.infrastructure || steps.filter_merge.outputs.infrastructure || steps.manual.outputs.infrastructure }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0

# When running via merge queue, diff the merge-group head vs its base
- name: Detect changes (pull request)
id: filter_pr
if: github.event_name == 'pull_request'
uses: dorny/paths-filter@v3
with:
filters: |
services:
- 'services/admin-backend/**'
- 'services/document-extractor/**'
- 'services/rag-backend/**'
- 'services/mcp-server/**'
libs:
- 'libs/**'
frontend:
- 'services/frontend/**'
infrastructure:
- 'infrastructure/**'
- 'Tiltfile'

- name: Detect changes (merge queue)
id: filter
id: filter_merge
if: github.event_name == 'merge_group'
uses: dorny/paths-filter@v3
with:
Expand Down Expand Up @@ -215,7 +234,11 @@ jobs:
run: |
curl https://get.helm.sh/helm-v3.12.0-linux-amd64.tar.gz | tar xz
sudo mv linux-amd64/helm /usr/local/bin/helm
helm lint infrastructure/rag/
find infrastructure -name Chart.yaml -print0 | while IFS= read -r -d '' chart; do
chart_dir="$(dirname "$chart")"
helm dependency build "$chart_dir"
helm lint "$chart_dir"
done

summary:
name: Lint and Test CI Summary
Expand Down
Loading
Loading