chore: prepare release v1.1.1
Release / release (push) Failing after 15s
Test / vet (push) Successful in 52s
Test / test (push) Failing after 16s
Test / toml-test (push) Successful in 44s

This commit is contained in:
2026-07-26 18:37:36 +02:00
parent eac3a60e9e
commit 818d863827
7 changed files with 34 additions and 23 deletions
+66
View File
@@ -0,0 +1,66 @@
name: Test
on:
push:
branches: [development]
pull_request:
branches: [development]
jobs:
vet:
runs-on: fedora
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: gofmt
# gofmt -l prints unformatted files; an empty output is the only pass.
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "These files need gofmt:"
echo "$unformatted"
exit 1
fi
- name: go vet
run: go vet ./...
test:
runs-on: fedora
needs: vet
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: go test -race
run: go test -race -count=1 ./...
- name: build example
run: go build ./examples/...
toml-test:
runs-on: fedora
needs: vet
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Install toml-test
# A dev/CI tool only; it is not a module dependency of interpres.
run: go install github.com/toml-lang/toml-test/cmd/toml-test@latest
- name: Run the toml-test compliance suite
run: |
set -euo pipefail
go build -o bin/interpres-decode ./cmd/interpres-decode
"$(go env GOPATH)/bin/toml-test" bin/interpres-decode