Skip to content

Merge pull request #19 from oxmmty/dev #39

Merge pull request #19 from oxmmty/dev

Merge pull request #19 from oxmmty/dev #39

Workflow file for this run

name: ci
on:
pull_request: {}
push:
branches:
- main
jobs:
go-fmt:
name: go-fmt
runs-on: ubuntu-20.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: "1.17"
- name: Checkout branch
uses: actions/checkout@v3
# Fail if go-fmt recommends any changes.
- name: Run go fmt
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi