Skip to content

Merge pull request #1648 from saschagrunert/unit-test-cases #2794

Merge pull request #1648 from saschagrunert/unit-test-cases

Merge pull request #1648 from saschagrunert/unit-test-cases #2794

Workflow file for this run

name: build
on:
push:
tags:
- "*"
branches:
- master
pull_request:
env:
GO_VERSION: '1.23'
jobs:
images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- run: images/build -d
linters:
name: verify / ${{ matrix.run }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
run:
- lint
- boilerplate
- dependencies
- go-modules
- docs
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- run: make verify-${{ matrix.run }}
test:
name: test / crictl
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- run: make test-crictl
releases:
name: releases / on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
matrix:
os: [ubuntu-22.04, macos-12] # TODO: make releases on 'linux-ppc64le' 'windows-2019'
# Ref: https://github.com/uraimo/run-on-arch-action
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- name: Make release
run: make release