diff --git a/.github/workflows/composer_build_and_test.yml b/.github/workflows/composer_build_and_test.yml index 1344ffb0c..54b4413b7 100644 --- a/.github/workflows/composer_build_and_test.yml +++ b/.github/workflows/composer_build_and_test.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Composer build and test +name: Composer on: push: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d3720b6a4..98aee926e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Docs Build and Deploy +name: Docs on: push: diff --git a/.github/workflows/editor_build.yml b/.github/workflows/editor_build.yml index cfc066347..b60309ff5 100644 --- a/.github/workflows/editor_build.yml +++ b/.github/workflows/editor_build.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Editor build +name: Editor on: push: diff --git a/.github/workflows/inspector_build.yml b/.github/workflows/inspector_build.yml index 08cd24156..e15e22cdd 100644 --- a/.github/workflows/inspector_build.yml +++ b/.github/workflows/inspector_build.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Inspector build +name: Inspector on: push: diff --git a/.github/workflows/java_build_and_test.yml b/.github/workflows/java_build_and_test.yml index cce94e8dc..ba55bbdb6 100644 --- a/.github/workflows/java_build_and_test.yml +++ b/.github/workflows/java_build_and_test.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Java sample build and test +name: Java sample on: push: diff --git a/.github/workflows/lit_build_and_test.yml b/.github/workflows/lit_build_and_test.yml new file mode 100644 index 000000000..1f9b34fc1 --- /dev/null +++ b/.github/workflows/lit_build_and_test.yml @@ -0,0 +1,60 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Lit renderer + +on: + push: + branches: [ main ] + paths: + - 'renderers/lit/**' + - 'renderers/web_core/**' + - '.github/workflows/lit_build_and_test.yml' + pull_request: + paths: + - 'renderers/lit/**' + - 'renderers/web_core/**' + - '.github/workflows/lit_build_and_test.yml' + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + + - name: Set up Node.js + uses: actions/setup-node@v6 + with: + node-version: '20' + + - name: Install web_core dependencies + working-directory: ./renderers/web_core + run: npm i + + - name: Build web_core + working-directory: ./renderers/web_core + run: npm run build + + - name: Install Lit renderer dependencies + working-directory: ./renderers/lit + run: npm i + + - name: Build Lit renderer + working-directory: ./renderers/lit + run: npm run build + + - name: Run Lit renderer tests + working-directory: ./renderers/lit + run: npm test diff --git a/.github/workflows/lit_samples_build.yml b/.github/workflows/lit_samples_build.yml index 1d9f1c9b8..b46557c9a 100644 --- a/.github/workflows/lit_samples_build.yml +++ b/.github/workflows/lit_samples_build.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Lit samples build +name: Lit samples on: push: diff --git a/.github/workflows/ng_build_and_test.yml b/.github/workflows/ng_build_and_test.yml index 521e21a47..98ff508cb 100644 --- a/.github/workflows/ng_build_and_test.yml +++ b/.github/workflows/ng_build_and_test.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Angular build and test +name: Angular on: push: diff --git a/.github/workflows/python_agent_sdk_build_and_test.yml b/.github/workflows/python_agent_sdk_build_and_test.yml index 197a6816f..e2d57f3d1 100644 --- a/.github/workflows/python_agent_sdk_build_and_test.yml +++ b/.github/workflows/python_agent_sdk_build_and_test.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Build and Test A2UI-agent Python SDK +name: A2UI-agent Python SDK on: push: diff --git a/.github/workflows/python_samples_build.yml b/.github/workflows/python_samples_build.yml index 3604b5e83..8ed807e60 100644 --- a/.github/workflows/python_samples_build.yml +++ b/.github/workflows/python_samples_build.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Build python samples +name: Python samples on: push: diff --git a/.github/workflows/validate_specifications.yml b/.github/workflows/validate_specifications.yml index 8790d4be1..258c84be6 100644 --- a/.github/workflows/validate_specifications.yml +++ b/.github/workflows/validate_specifications.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Validate A2UI Specification Examples +name: Validate A2UI specification examples on: push: diff --git a/.github/workflows/web_build_and_test.yml b/.github/workflows/web_build_and_test.yml index a266f5fdf..e1073c6b9 100644 --- a/.github/workflows/web_build_and_test.yml +++ b/.github/workflows/web_build_and_test.yml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,18 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Lit renderer build and test +name: Web core on: push: branches: [ main ] paths: - - 'renderers/lit/**' - 'renderers/web_core/**' - '.github/workflows/web_build_and_test.yml' pull_request: paths: - - 'renderers/lit/**' - 'renderers/web_core/**' - '.github/workflows/web_build_and_test.yml' @@ -47,14 +45,7 @@ jobs: working-directory: ./renderers/web_core run: npm run build - - name: Install Lit renderer dependencies - working-directory: ./renderers/lit - run: npm i - - - name: Build Lit renderer - working-directory: ./renderers/lit - run: npm run build + - name: Test web_core + working-directory: ./renderers/web_core + run: npm run test - - name: Run Lit renderer tests - working-directory: ./renderers/lit - run: npm test diff --git a/renderers/web_core/package.json b/renderers/web_core/package.json index 029376fa0..e5b24dd05 100644 --- a/renderers/web_core/package.json +++ b/renderers/web_core/package.json @@ -79,7 +79,7 @@ "clean": "if-file-deleted" }, "test": { - "command": "node --test \"dist/**/*.test.js\"", + "command": "node --test dist", "dependencies": [ "build" ]