Skip to content

Commit

Permalink
use precompiled tatest test binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Chystik committed Oct 26, 2023
1 parent a65d208 commit 21b7b2b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/gophermart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Download autotests binaries
uses: robinraju/[email protected]
with:
repository: Yandex-Practicum/go-autotests
tag: "v0.10.1"
fileName: "*"
out-file-path: .tools

- name: Setup autotest binary
run: |
chmod -R +x $GITHUB_WORKSPACE/.tools
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,5 @@ vendor/
.idea
.vscode

# test binaries
statictest
random
gophermarttest

# logs
*.log
Binary file added .tools/gophermarttest
Binary file not shown.
Binary file added .tools/random
Binary file not shown.
Binary file added .tools/statictest
Binary file not shown.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ race:
lint:
/home/user/go/bin/golangci-lint run

accrual-port = $(shell ./random unused-port)
accrual-port = $(shell ./.tools/random unused-port)
gophermart-bin = ./cmd/gophermart/gophermart
autotest:
go build -o $(gophermart-bin) ./cmd/gophermart
./gophermarttest \
./.tools/gophermarttest \
-test.v -test.run=^TestGophermart$ \
-gophermart-binary-path=$(gophermart-bin) \
-gophermart-host=localhost \
Expand All @@ -39,7 +39,7 @@ cover:
rm coverage.out

statictest:
go vet -vettool=statictest ./...
go vet -vettool=./.tools/statictest ./...

dev-up:
docker-compose -f=docker-compose.dev.yml --env-file=.env.dev up -d
Expand Down

0 comments on commit 21b7b2b

Please sign in to comment.