Skip to content

Commit

Permalink
Merge pull request RedHatInsights#1424 from petracihalova/json-yaml-v…
Browse files Browse the repository at this point in the history
…alidation

[RHCLOUD-37309] add json and yaml basic validator into ci
  • Loading branch information
petracihalova authored Jan 14, 2025
2 parents 19b59fb + 2963c89 commit 460f93e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/json-yaml-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: json-yaml-validate
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

permissions:
contents: read
pull-requests: write # enable write permissions for pull request comments

jobs:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: json-yaml-validate
id: json-yaml-validate
uses: GrantBirki/[email protected] # https://github.com/GrantBirki/json-yaml-validate/
with:
comment: "true" # enable comment mode
2 changes: 1 addition & 1 deletion openshift/rbac-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ objects:
selector:
name: rbac-pgsql
resources:
limits:
requests:
memory: ${MEMORY_REQUEST}
limits:
memory: ${MEMORY_LIMIT}
Expand Down
2 changes: 1 addition & 1 deletion openshift/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ objects:
selector:
name: ${NAME}-redis
resources:
limits:
requests:
memory: ${MEMORY_REQUEST}
limits:
memory: ${MEMORY_LIMIT}
Expand Down
6 changes: 3 additions & 3 deletions scripts/ephemeral/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ apps:
components:
- name: rbac
host: local
repo: %REPO%
repo: $(REPO}
path: /deploy/rbac-clowdapp.yml
parameters:
IMAGE_TAG: %IMAGE_TAG%
IMAGE: %IMAGE%
IMAGE_TAG: ${IMAGE_TAG}
IMAGE: ${IMAGE}
CW_NULL_WORKAROUND: false
MIN_SCHEDULER_REPLICAS: 1
CELERY_WORKER_MEMORY_LIMIT: '2Gi'
Expand Down

0 comments on commit 460f93e

Please sign in to comment.