File tree Expand file tree Collapse file tree 2 files changed +120
-75
lines changed Expand file tree Collapse file tree 2 files changed +120
-75
lines changed Original file line number Diff line number Diff line change 99 - cron : ' 0 13 */15 * *'
1010
1111jobs :
12- Ubuntu :
13- name : Linux
12+ Go :
13+ name : Go
1414 runs-on : ubuntu-latest
1515
1616 env :
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 ./...
You can’t perform that action at this time.
0 commit comments