ci: add gofmt step to github workflow

This commit is contained in:
ayntgl 2021-10-25 21:16:44 +04:00
parent 7499e83492
commit 89dd7221ab

View file

@ -1,4 +1,4 @@
name: build
name: ci
on: [push, pull_request]
jobs:
@ -10,7 +10,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.16'
go-version: '^1.17'
- name: Format
run: go fmt .
- name: Build
run: go build
run: go build .