Skip to content

Replace go-containerregistry with containerd/moby #1444

Replace go-containerregistry with containerd/moby

Replace go-containerregistry with containerd/moby #1444

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, windows]
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
with:
go-version: 1.24.3
cache: true
- name: Install golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
with:
version: v2.7.2
install-only: true
- name: Run linting for ${{ matrix.goos }}
env:
GOOS: ${{ matrix.goos }}
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Verify vendor/ is not present
run: stat vendor && exit 1 || exit 0
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
with:
go-version: 1.24.3
cache: true
- name: Check go mod tidy
run: |
go mod tidy
go mod tidy -C cmd/cli
go work sync
git diff --exit-code go.mod go.sum cmd/cli/go.mod cmd/cli/go.sum go.work go.work.sum
- name: Run tests with race detection
run: go test -race ./...
- name: validate
run: make validate
- name: model-distribution # TODO: Create a single Makefile for the monorepo
run: make -C ./pkg/distribution/ all