Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

build: add Makefile#525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 1 commit intomasterfrommafredri/build-add-makefile
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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
build: add Makefile
  • Loading branch information
@mafredri
mafredri committedMar 14, 2025
commit2f085c8c4da1fca93cf68030cf7d8370a88d0ead
8 changes: 4 additions & 4 deletions.github/workflows/ci.yml
View file
Open in desktop
Original file line numberDiff line numberDiff 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:makefmt

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:makelint

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:maketest
- 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:makebench
8 changes: 4 additions & 4 deletions.github/workflows/daily.yml
View file
Open in desktop
Original file line numberDiff line numberDiff 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=1makebench
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=1maketest
- 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=1makebench
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=1maketest
- uses: actions/upload-artifact@v4
with:
name: coverage-dev.html
Expand Down
2 changes: 1 addition & 1 deletion.github/workflows/static.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,7 +38,7 @@ jobs:
go-version-file: ./go.mod
- name: Generate coverage and badge
run: |
./ci/test.sh
maketest
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 deletionsMakefile
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionci/lint.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
#!/bin/sh
set -x
set -eu
cd -- "$(dirname "$0")/.."

Expand Down
12 changes: 0 additions & 12 deletionsmake.sh
View file
Open in desktop

This file was deleted.


[8]ページ先頭

©2009-2025 Movatter.jp