Skip to content

github actions added #1

github actions added

github actions added #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.25']
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Download dependencies
run: go mod tidy
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
- name: Run tests (if any exist)
run: |
if find . -name "*_test.go" | grep -q .; then
go test -v -race ./...
else
echo "No tests found, skipping test execution"
fi
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.25'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=5m