Skip to content

feat: olla profile #121

feat: olla profile

feat: olla profile #121

Workflow file for this run

name: CI
on:
push:
branches:
- main
- 'pipelines/*'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
env:
GO_VERSION: 1.24.x
GOLANGCILINT_VERSION: "1.64.8"
permissions:
contents: read
pull-requests: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.24']
steps:
- name: Configure Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Checkout
uses: actions/checkout@v4
- name: Verify dependencies
run: go mod verify
- name: Download dependencies
run: go mod download
- name: Run go vet
run: go vet ./...
- name: Run go fmt check
run: make fmt && git diff --exit-code
- name: Build
run: make build
- name: Run tests
run: make test-race
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- name: Configure Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Checkout
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v${{ env.GOLANGCILINT_VERSION }}
args: --timeout=10m --max-same-issues=0 --max-issues-per-linter=0
- name: betteralign checks
run: |
go install github.com/dkorunic/betteralign/cmd/betteralign@latest
output=$(betteralign ./...)
if [ -n "$output" ]; then
echo "Struct alignment issues found:"
echo "$output"
exit 1
fi