Add Git-authored controller desired state #84
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: Validate ci-fleet prototype | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: validate-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| name: Build without registering a runner | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install static analysis tools | |
| run: sudo apt-get update && sudo apt-get install -y shellcheck | |
| - name: Check shell scripts | |
| run: shellcheck scripts/*.sh examples/project/scripts/ci/*.sh templates/config-repository/scripts/*.sh | |
| - name: Build and inspect inert prototype | |
| run: scripts/validate.sh | |
| - name: Validate public configuration template | |
| run: | | |
| python3 templates/config-repository/scripts/test_policy.py | |
| templates/config-repository/scripts/validate.sh | |
| templates/config-repository/scripts/validate.sh --config templates/config-repository/examples/multi-host/fleet.json | |
| temporary_directory="$(mktemp -d)" | |
| templates/config-repository/scripts/init.sh \ | |
| --organization test-company \ | |
| --project test-app \ | |
| --engine-ref "$(git rev-parse HEAD)" \ | |
| --output "${temporary_directory}/fleet.json" |