Skip to content

fix alignment of all structs #367

fix alignment of all structs

fix alignment of all structs #367

Workflow file for this run

name: go-header CI
on:
push:
tags:
- v*
branches:
- main
- chore/ramin/field-alignment
pull_request:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
go-version: ${{ steps.go-version.outputs.go-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: debug .go-version file
run: cat .go-version
- name: Read .go-version file
id: go-version
run: |
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
lint:
needs: [setup]
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ needs.setup.outputs.go-version }}
- name: golangci-lint
uses: golangci/[email protected]
with:
args: --timeout 10m
version: v1.55
skip-pkg-cache: true
skip-build-cache: true
build:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ needs.setup.outputs.go-version }}
- name: Build
run: go build -v ./...
- name: Test & Coverage
run: |
go install github.com/ory/[email protected]
go-acc -o coverage.txt ./... -- -v --race
- uses: codecov/codecov-action@v3
with:
file: ./coverage.txt