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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: ./ci/fmt.sh
- run: make fmt

lint:
runs-on: ubuntu-latest
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: ./ci/lint.sh
- run: make lint

test:
runs-on: ubuntu-latest
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: ./ci/test.sh
- run: make test
- uses: actions/upload-artifact@v4
with:
name: coverage.html
Expand All @@ -56,4 +56,4 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: ./ci/bench.sh
- run: make bench
8 changes: 4 additions & 4 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/bench.sh
- run: AUTOBAHN=1 make bench
test:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/test.sh
- run: AUTOBAHN=1 make test
- uses: actions/upload-artifact@v4
with:
name: coverage.html
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/bench.sh
- run: AUTOBAHN=1 make bench
test-dev:
runs-on: ubuntu-latest
steps:
Expand All @@ -59,7 +59,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/test.sh
- run: AUTOBAHN=1 make test
- uses: actions/upload-artifact@v4
with:
name: coverage-dev.html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
go-version-file: ./go.mod
- name: Generate coverage and badge
run: |
./ci/test.sh
make test
mkdir -p ./ci/out/static
cp ./ci/out/coverage.html ./ci/out/static/coverage.html
percent=$(go tool cover -func ./ci/out/coverage.prof | tail -n1 | awk '{print $3}' | tr -d '%')
Expand Down
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.PHONY: all
all: fmt lint test

.PHONY: fmt
fmt:
./ci/fmt.sh

.PHONY: lint
lint:
./ci/lint.sh

.PHONY: test
test:
./ci/test.sh

.PHONY: bench
bench:
./ci/bench.sh
1 change: 0 additions & 1 deletion ci/lint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
set -x
set -eu
cd -- "$(dirname "$0")/.."

Expand Down
12 changes: 0 additions & 12 deletions make.sh

This file was deleted.