Skip to content

Commit 98b68a6

Browse files
committed
github: run linter and mod-check in CI
1 parent c3cad46 commit 98b68a6

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,37 @@ jobs:
171171
working-directory: ./app
172172
run: yarn
173173

174-
- name: run check
175-
run: make protos-check
174+
- name: setup go ${{ env.GO_VERSION }}
175+
uses: actions/setup-go@v2
176+
with:
177+
go-version: '${{ env.GO_VERSION }}'
176178

177179
- name: compile rpc for golang
178180
run: make rpc
179181

182+
- name: run check
183+
run: make mod-check
184+
185+
lint:
186+
name: lint
187+
runs-on: ubuntu-latest
188+
steps:
189+
- name: git checkout
190+
uses: actions/checkout@v2
191+
with:
192+
fetch-depth: 0
193+
194+
- name: setup go ${{ env.GO_VERSION }}
195+
uses: actions/setup-go@v2
196+
with:
197+
go-version: '${{ env.GO_VERSION }}'
198+
199+
- name: prepare dummy static data
200+
run: mkdir -p app/build; touch app/build/index.html
201+
202+
- name: run check
203+
run: make lint mod-check
204+
180205
unit-race:
181206
name: unit-race
182207
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)