Skip to content

feat: bunch of examples #8

feat: bunch of examples

feat: bunch of examples #8

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: |
go mod download
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
- name: Check formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "The following files are not formatted correctly:"
gofmt -s -l .
exit 1
fi
- name: Run tests
run: go test -v ./...