Skip to content

Commit c87dbf4

Browse files
committed
ci: centralize test execution in Makefile
Introduce a 'test' target in the Makefile to standardize how tests are run locally and in CI. This change updates the GitHub workflow to use 'make test', ensuring consistency across all development environments and simplifying CI maintenance.
1 parent 012698b commit c87dbf4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: cachix/install-nix-action@v30
1313
with:
1414
nix_path: nixpkgs=channel:nixos-unstable
15-
- run: nix-shell --run "go test -race ./..."
15+
- run: nix-shell --run "make test"
1616
build:
1717
name: Build
1818
runs-on: ${{ matrix.os }}

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Run tests
2+
test:
3+
@go test -race ./... -v
4+
.PHONY: test
5+
16
# Lint the source code
27
lint:
38
@golangci-lint run

0 commit comments

Comments
 (0)