Skip to content

Merge pull request #1727 from saschagrunert/thelper #2975

Merge pull request #1727 from saschagrunert/thelper

Merge pull request #1727 from saschagrunert/thelper #2975

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
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-13] # TODO: make releases on 'linux-ppc64le' 'windows-2019'
# Ref: https://github.com/uraimo/run-on-arch-action
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Make release
run: make release
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: crate-ci/typos@9d890159570d5018df91fedfa40b4730cd4a81b1 # v1.28.4
with:
config: .typos.toml
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: creyD/prettier_action@31355f8eef017f8aeba2e0bc09d8502b13dbbad1 # v4.3
with:
dry: true
prettier_options: --write .