Skip to content

chore: migrate to single config model #90

chore: migrate to single config model

chore: migrate to single config model #90

Workflow file for this run

#
#
# Copyright Red Hat
#
# 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
#
# http://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: Validation Checks
on:
pull_request:
branches:
- main
- rhdh-*
jobs:
validate-yaml:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Use Node.js and cache dependencies
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22.21'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --frozen-lockfile
- name: Validate YAML files
run: make validate-yaml
validate-configs:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Use Python 3.12
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install yq
run: |
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.52.4/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
- name: Validate image sync
run: bash scripts/validate-images.sh
- name: Validate prompt template sync
run: |
if ! make validate-prompt-templates; then
echo "ERROR: Prompt templates are out of sync between lightspeed-core-configs/rhdh-profile.py and lightspeed-core-configs/lightspeed-stack.yaml. Run 'make update-prompt-templates' and commit the result."
exit 1
fi