Skip to content

Add devbox configuration #62

Add devbox configuration

Add devbox configuration #62

name: lint-and-test
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: ^1.22
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1.22
id: go
- name: Download dependencies
run: go mod download
- name: Test
run: go test -v -coverprofile=coverage.txt -covermode=count ./...
- uses: codecov/codecov-action@v4