Skip to content

Fix

Fix #25

Workflow file for this run

name: "Build Test"
on: [ push,pull_request ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build_test:
name: Build Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: "1.17"
- name: Checkout repository
uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
- name: Format
run: if [ "$(gofmt -l . | tee >&2 | wc -l)" -gt 0 ]; then exit 1; fi
- name: Build
run: make build-all
- name: Git Diff
run: if [ "$(git diff | tee >&2 | wc -l)" -gt 0 ]; then exit 1; fi