Skip to content

docs: Format code blocks with CUE v0.7.0 #749

docs: Format code blocks with CUE v0.7.0

docs: Format code blocks with CUE v0.7.0 #749

Workflow file for this run

name: build
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.21.x
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Setup CUE
uses: cue-lang/setup-cue@1713281ae501e533ff06108005dffeab9e2e5203 # main
with:
version: v0.7.0
- name: Run tests
run: make test
- name: Run linter
run: make cue-vet
- name: Run setup action
uses: ./actions/setup
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'run "make test lint-samples" and commit changes'
exit 1
fi