Skip to content
align-left

GitHub Action

EK Aligo

v2 Latest version

EK Aligo

align-left

EK Aligo

Action for checking Golang struct alignment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: EK Aligo

uses: essentialkaos/aligo-action@v2

Learn more about this action in essentialkaos/aligo-action

Choose a version


Action for checking scripts with aligo.

Usage

Create file .github/workflows/aligo.yml.

Add next code to it or add job Aligo to your workflow:

name: CI

on:
  push:
    branches: [master, develop]
  pull_request:
    branches: [master]

jobs:
  Aligo:
    name: Aligo
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Set up Go
        uses: actions/setup-go@v2
        with:
          go-version: '1.21.x'

      - name: Check Golang sources with Aligo
        uses: essentialkaos/aligo-action@v2
        with:
          files: ./...
          tags: unit,e2e

Options

Option Description Value
files Files or directories to check List
path Path to directory with sources Path
tags Build tags Tags

License

Apache License, Version 2.0