Skip to content

chore: release 1.0 (#84) #284

chore: release 1.0 (#84)

chore: release 1.0 (#84) #284

Workflow file for this run

name: Build and Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Check Format
run: |
bad_files="$(gofmt -s -l .)"
if [[ -n $bad_files ]]; then
echo "::error::Some files are not formatted with 'gofmt -s'"
while IFS= read -r file_name; do
echo "::error file=$file_name::$file_name is not formatted with 'gofmt -s'"
done <<< "$bad_files"
exit 1
fi
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51