-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c545501
commit 8b579eb
Showing
1 changed file
with
0 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,25 +14,3 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get Changed Files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v44 | ||
with: | ||
files_yaml: | | ||
cue: | ||
- metadata.rules.cue | ||
- apps/**/metadata.json | ||
- apps/**/metadata.yaml | ||
- name: Setup CUE | ||
if: ${{ steps.changed-files.outputs.cue_any_changed == 'true' }} | ||
uses: cue-lang/[email protected] | ||
|
||
# Run against all files to ensure they are tested if the cue schema is changed. | ||
- name: Validate image metadata | ||
if: ${{ steps.changed-files.outputs.cue_any_changed == 'true' }} | ||
shell: bash | ||
run: | | ||
find ./apps/ -name metadata.json | xargs -I {} cue vet --schema '#Spec' {} ./metadata.rules.cue | ||
find ./apps/ -name metadata.yaml | xargs -I {} cue vet --schema '#Spec' {} ./metadata.rules.cue |