Skip to content

README.md touchups

README.md touchups #9

Workflow file for this run

name: Go CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.21" # Use a valid Go version
- name: Run go fmt
run: |
go fmt ./...
if [ -n "$(git status --porcelain)" ]; then
echo "Code is not formatted. Please run 'go fmt ./...' locally and commit changes."
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Run tests
run: go test ./...