[DO NOT MERGE] test: verify signing and DCO #71
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: CI - PR Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| - main | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Sanity check repo contents | |
| run: ls -la | |
| - name: Extract Go version from go.mod | |
| run: sed -En 's/^go (.*)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV | |
| - name: Set up Go with cache | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "${{ env.GO_VERSION }}" | |
| cache-dependency-path: ./go.sum | |
| - name: Configure Git to use token for private modules | |
| run: | | |
| git config --global url."https://${{ secrets.KV_CACHE_MANAGER_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
| go env -w GOPRIVATE=github.com/llm-d/* | |
| - name: go mod tidy | |
| run: go mod tidy | |
| - name: Run lint checks | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: 'v2.1.6' | |
| args: "--config=./.golangci.yml" | |
| - name: Run make test | |
| shell: bash | |
| run: | | |
| make test | |
| - name: Run make build | |
| shell: bash | |
| run: | | |
| make build |