1name: 'Validate CUE Schemas'
2description: 'Validates CUE schema formatting and syntax'
3
4inputs:
5 cue-version:
6 description: 'CUE version to use'
7 required: false
8 default: 'v0.15.1'
9
10runs:
11 using: 'composite'
12 steps:
13 - name: Setup Cue
14 uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
15 with:
16 version: ${{ inputs.cue-version }}
17
18 - name: Check CUE module tidiness
19 run: make tidycheck
20 shell: bash
21
22 - name: Validate the formatting of cue schema files
23 run: make cuefmtcheck
24 shell: bash
25
26 - name: Validate the syntax of cue schema files
27 run: make lintcue
28 shell: bash