Repository navigation
chore(ci): add build job to workflow #168
Workflow file for this run
This file contains hidden or 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: Lint checks | |
| on: | |
| push: | |
| paths: | |
| - '**.sh' | |
| - '**.yaml' | |
| - '**.yml' | |
| - '**.md' | |
| pull_request: | |
| paths: | |
| - '**.sh' | |
| - '**.yaml' | |
| - '**.yml' | |
| - '**.md' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.25 | |
| - name: Install linters | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y shellcheck yamllint | |
| npm install -g markdownlint-cli | |
| go install kcl-lang.io/cli/cmd/kcl@latest | |
| - name: Lint shell scripts | |
| run: | | |
| find . -name "*.sh" -exec shellcheck {} + | |
| - name: Lint YAML files | |
| run: | | |
| yamllint . | |
| - name: Lint Markdown files | |
| run: | | |
| markdownlint "**/*.md" | |
| - name: Lint KCL files | |
| run: | | |
| kcl lint configs/ | |
| - name: Setup TFLint | |
| uses: terraform-linters/setup-tflint@v6 | |
| - name: Lint Terraform manifests | |
| run: | | |
| tflint --chdir liveOS/ |