Skip to content

Modernize and fix CI #219

Modernize and fix CI

Modernize and fix CI #219

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.12.x', '1.23.x', '1.24.x']
steps:
- run: sudo apt-get -qq update
- name: Install libsystemd-dev
run: sudo apt-get install libsystemd-dev
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Go fmt
run: ./scripts/ci-runner.sh go_fmt
- name: Go build (source)
run: ./scripts/ci-runner.sh build_source
- name: Go build (tests)
run: ./scripts/ci-runner.sh build_tests
- name: Go vet
run: ./scripts/ci-runner.sh go_vet
all-done:
needs:
- build
runs-on: ubuntu-latest
steps:
- run: echo "All jobs completed"