Add cmd for importing Kubernetes API schemas #476
Workflow file for this run
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
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.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.6.0 | |
- name: Run tests | |
run: make test | |
- name: Run linter | |
run: make lint-samples | |
- 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 |