Skip to content

Commit 7f29e5a

Browse files
committed
update CI test stage with make rule
1 parent 0242ea7 commit 7f29e5a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/go-collab.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
sudo mkdir -p /usr/local/gitconvex
4646
sudo chown $(whoami) /usr/local/gitconvex/
4747
go generate
48-
$GITHUB_WORKSPACE/build_scripts/clone_test_repo.sh
49-
go test ./... -count=1 -cover
48+
make test-ci
5049
5150
gitconvex-build:
5251
needs:

.github/workflows/go.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
sudo mkdir -p /usr/local/gitconvex
4646
sudo chown $(whoami) /usr/local/gitconvex/
4747
go generate
48-
$GITHUB_WORKSPACE/build_scripts/clone_test_repo.sh
49-
go test ./... -count=1 -cover
48+
make test-ci
5049
5150
gitconvex-build:
5251
needs:

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ test-pretty:
4646
gotestsum ./... -count=1 -cover -coverprofile=coverage.out && \
4747
rm -rf $$GITCONVEX_TEST_REPO
4848

49+
test-ci:
50+
go clean --cache && \
51+
./build_scripts/clone_test_repo.sh && \
52+
go test ./... -count=1 -cover -coverprofile=coverage.out && \
53+
rm -rf $$GITCONVEX_TEST_REPO
54+
4955
show-coverage:
5056
go tool cover -html=coverage.out
5157

0 commit comments

Comments
 (0)