Skip to content

Commit c8f3e60

Browse files
committed
Improve GitHub Actions CI workflow
1 parent f3df8a8 commit c8f3e60

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,52 @@ jobs:
4747
working-directory: ${{env.SRC_DIR}}
4848
run: make all
4949

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

0 commit comments

Comments
 (0)