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
21 changes: 0 additions & 21 deletions .claude/settings.local.json

This file was deleted.

13 changes: 6 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

# Service containers to run with `test`
services:
Expand All @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

Expand All @@ -46,19 +46,18 @@ jobs:

golangci-lint:
name: Lint
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

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

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v8
with:
version: v1.57
skip-go-installation: true
version: v2.1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ lesswrong-bot
# vendor/

.env

.claude/settings.local.json
27 changes: 24 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
version: "2"
run:
build-tags:
- integration
skip-dirs:
- mocks
- testdata
linters:
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
- mocks$
- testdata$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
- mocks$
- testdata$
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ BINARY_NAME=lesswrong-bot
DOCKER_IMAGE=lesswrong-bot

run: ## Run the application
export $(cat .env | xargs); go run .
env $$(cat .env | xargs) go run .

test: ## Run tests with race detection
go test -race ./...

test-integration: ## Run integration tests
export $(cat .env.test | xargs); go test -race -tags=integration ./...
env $$(cat .env | xargs) go test -race -tags=integration ./...

test-coverage: ## Run tests with coverage
go test -race -coverprofile=coverage.out ./...
Expand Down
Loading