Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
Binary file added .github/workflows/bin/gofumpt
Binary file not shown.
Binary file added .github/workflows/bin/govulncheck
Binary file not shown.
Binary file added .github/workflows/bin/staticcheck
Binary file not shown.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x

- name: Checkout code
uses: actions/checkout@v4

- name: go mod package cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Tests
run: go test ./...

- name: Gofumpt
run: ./.github/workflows/bin/gofumpt -l -w . 2>&1 | tee outfile && test -z "$(cat outfile)" && rm outfile

- name: Go Vet
run: go vet ./...

- name: Staticcheck
run: ./.github/workflows/bin/staticcheck ./...

- name: Govulncheck
run: ./.github/workflows/bin/govulncheck ./...
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.exe
*.exe~
*.dll
*.so
*.dylib

*.test
*.out

.idea
.vscode
.devcontainer
.history
.DS_Store
__debug_bin
Loading