Skip to content

Fix silent output loss: own the child's pipes so Wait can't close them #26

Fix silent output loss: own the child's pipes so Wait can't close them

Fix silent output loss: own the child's pipes so Wait can't close them #26

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
go:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "gofmt needed on:" >&2
echo "$unformatted" >&2
exit 1
fi
- name: Vet
run: go vet ./...
- name: Test
run: go test -race ./...
- name: Build
run: go build -o bin/codag .