Skip to content

new build pipeline test #36

new build pipeline test

new build pipeline test #36

Workflow file for this run

name: Go CLI Test
on:
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# Ubuntu 22.04 LTS uses go 1.18
# Debian 12 (bookworm) uses go 1.19
# Ubuntu 24.04 LTS uses go 1.22
# Debian 13 (trixie) uses 1.24
# Build uses 1.25
go-version: [1.18, 1.19, 1.22, 1.24, 1.25]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false # cache not needed if there is no go.sum file
# not needed without dependencies
# - name: Install dependencies
# run: go mod tidy
- name: Run tests
run: go test ./... -v