Skip to content

feat(#115): add ears-manager storage foundation #2

feat(#115): add ears-manager storage foundation

feat(#115): add ears-manager storage foundation #2

Workflow file for this run

---
# yamllint disable rule:line-length
name: Go Foundation
on: # yamllint disable-line rule:truthy
push:
branches:
- main
tags: ["*"]
pull_request:
branches:
- main
merge_group:
workflow_dispatch:
permissions:
contents: read
jobs:
go:
name: Go foundation checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
# https://github.com/actions/checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
submodules: recursive
- name: Set up Go
# https://github.com/actions/setup-go
# zizmor: ignore[cache-poisoning]
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: go.mod
- name: Check formatting
run: |
files="$(gofmt -l .)" || exit $?
test -z "$files"
- name: Run golangci-lint
# https://github.com/golangci/golangci-lint-action
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v2.13.2
args: --timeout=5m
skip-cache: true
- name: Run vet
run: go vet ./...
- name: Run tests
run: go test ./...
- name: Build static binary
run: CGO_ENABLED=0 go build -trimpath -buildvcs=false -o ears-manager ./cmd/ears-manager