Skip to content

Commit d6190ad

Browse files
authored
Merge pull request #78 from essentialkaos/develop
Version 13.0.1
2 parents 87fa1ba + 676e5f6 commit d6190ad

File tree

2 files changed

+120
-75
lines changed

2 files changed

+120
-75
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
- cron: '0 13 */15 * *'
1010

1111
jobs:
12-
Ubuntu:
13-
name: Linux
12+
Go:
13+
name: Go
1414
runs-on: ubuntu-latest
1515

1616
env:
@@ -45,3 +45,48 @@ jobs:
4545
- name: Run tests
4646
working-directory: ${{env.SRC_DIR}}
4747
run: make test
48+
49+
Aligo:
50+
name: Aligo
51+
runs-on: ubuntu-latest
52+
53+
needs: Go
54+
55+
env:
56+
SRC_DIR: src/github.com/${{ github.repository }}
57+
58+
steps:
59+
- name: Set up Go
60+
uses: actions/setup-go@v2
61+
with:
62+
go-version: '1.15.x'
63+
id: go
64+
65+
- name: Setup PATH
66+
run: |
67+
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
68+
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
69+
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
70+
71+
- name: Checkout
72+
uses: actions/checkout@v2
73+
with:
74+
path: ${{env.SRC_DIR}}
75+
76+
- name: Download dependencies
77+
working-directory: ${{env.SRC_DIR}}
78+
run: make deps
79+
80+
- name: Install Aligo
81+
working-directory: ${{env.SRC_DIR}}
82+
run: |
83+
wget https://apps.kaos.st/aligo/latest/linux/x86_64/aligo
84+
chmod +x aligo
85+
86+
- name: Print Aligo version info
87+
working-directory: ${{env.SRC_DIR}}
88+
run: ./aligo --version
89+
90+
- name: Check Go structs alignment info
91+
working-directory: ${{env.SRC_DIR}}
92+
run: ./aligo check ./...

0 commit comments

Comments
 (0)