CI #738
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '13 */4 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.7' | |
| cache: true | |
| - name: Test source code | |
| run: script/test-source | |
| - name: Test build | |
| run: script/test-build | |
| - name: Test unit | |
| run: script/test-unit | |
| - name: Update packages | |
| run: sudo apt-get update | |
| - name: Set up SQLite | |
| run: sudo apt-get install sqlite3 | |
| - name: Start local MySQL | |
| run: sudo /etc/init.d/mysql start | |
| - name: Test integration | |
| run: script/test-integration | |
| - name: Test documentation | |
| run: script/test-docs | |
| - name: Upload orchestrator binary artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: orchestrator | |
| path: bin/orchestrator | |
| lint: | |
| # only-new-issues needs a PR base; on push/schedule every pre-existing issue | |
| # is reported as "new", so only run where the diff-vs-base comparison works. | |
| if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.7' | |
| cache: true | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: v2.11.4 | |
| only-new-issues: true | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.7' | |
| cache: true | |
| - name: Install govulncheck | |
| run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4 | |
| - name: Run govulncheck | |
| run: govulncheck ./... | |
| continue-on-error: true # Known Go stdlib vulns require Go 1.25.8 |