Skip to content

Temporarily Add Image Build & Push on Merge - Follow Up #17

Temporarily Add Image Build & Push on Merge - Follow Up

Temporarily Add Image Build & Push on Merge - Follow Up #17

Workflow file for this run

name: CI - PR Checks
on:
pull_request:
branches:
- main
- dev
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: Set up go with cache
uses: actions/setup-go@v5
with:
go-version: '1.24.0'
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 go test
shell: bash
run: |
make test
- name: Run go build
shell: bash
run: |
make build