Skip to content

Commit

Permalink
Merge pull request #29 from gkarthiks/feat/ci
Browse files Browse the repository at this point in the history
Adding gofmt validation
  • Loading branch information
gkarthiks authored Jul 25, 2021
2 parents 02342ce + edf0662 commit 08e10c3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi

0 comments on commit 08e10c3

Please sign in to comment.