Skip to content

Docu updates

Docu updates #72

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" ]
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci-lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
build_amd64:
name: Build AMD64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version
- name: Build for amd64
run: GOARCH=amd64 go build -v ./...
build_arm64:
name: Build ARM64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version
- name: Build for arm64
run: GOARCH=arm64 go build -v ./...
test:
name: Unit Tests
runs-on: ubuntu-latest
needs: build_amd64
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version
- name: Run Tests
run: go test -v ./...
check-license-lines:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check License Lines
uses: kt3k/[email protected]