Skip to content

added some service checks #202

added some service checks

added some service checks #202

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
version: ["1.23"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
- name: Build
run: go build -v .
- name: Build Windows (Cross Compile)
if: matrix.os == 'ubuntu-latest'
run: go build -v .
env:
GOOS: windows
- name: Test
run: go test -v ./...
- name: Format (Linux only)
if: matrix.os == 'ubuntu-latest'
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then gofmt -s -d .; exit 1; fi