Skip to content

Set up CI, enforce gofmt #1

Set up CI, enforce gofmt

Set up CI, enforce gofmt #1

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: CI
jobs:
test:
name: run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.13.0'
- name: Run tests
run: go test
fmt:
name: run gofmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.13.0'
- name: run gofmt
run: diff -u <(echo -n) <(gofmt -d ./)