Skip to content

ci: run tests on multiple go versions and oses #718

ci: run tests on multiple go versions and oses

ci: run tests on multiple go versions and oses #718

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "LICENSE"
- "**.md"
- "examples/*"
- "templates/*"
jobs:
unit:
strategy:
matrix:
go-version:
- "1.23"
- "1.24"
os:
- macos
- ubuntu
- windows
fail-fast: false
name: Unit Tests (${{ matrix.os }}/go-${{ matrix.go-version }})
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: make get-deps
- name: Build docker-gen
run: make docker-gen
- name: Check code formatting
if: runner.os != 'Windows'
run: make check-gofmt
- name: Run tests
run: make test