Skip to content

Commit

Permalink
Use os/gh actions lint, normal sqlite build
Browse files Browse the repository at this point in the history
  • Loading branch information
lstoll committed May 30, 2022
1 parent 139a2a1 commit f532c83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 54 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Make
run: |
make
- name: Test
run: go test ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GOPATH=$(shell go env GOPATH)

.PHONY: all $(GOPATH)/bin/wherewasi test lint proto

go_build_flags=-tags="libsqlite3 sqlite3_unlock_notify"
go_build_flags=

all: $(GOPATH)/bin/wherewasi test lint

Expand All @@ -12,8 +12,5 @@ $(GOPATH)/bin/wherewasi:
test:
go test $(go_build_flags) -v .

lint: bin/golangci-lint-1.23.8
./bin/golangci-lint-1.23.8 run ./...

bin/golangci-lint-1.23.8:
./hack/fetch-golangci-lint.sh
lint:
golangci-lint run ./...
45 changes: 0 additions & 45 deletions hack/fetch-golangci-lint.sh

This file was deleted.

0 comments on commit f532c83

Please sign in to comment.