Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Enhance the unit test #259

Merged
merged 3 commits into from
Dec 12, 2021
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: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
go-version: '1.15'
-
run: go test -cpu 4 ./...
run: go test -cpu 4 -coverprofile .testCoverage.txt $(go list ./... | grep -v model/ent | grep -v mock)
env:
GIN_MODE: release

Expand All @@ -36,9 +36,11 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '14.17.0'
cache: 'npm'
cache-dependency-path: ui/package-lock.json
-
run: npm install
working-directory: ./ui
working-directory: ui
-
run: npm run lint
working-directory: ./ui
working-directory: ui
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# Test binary, built with `go test -c`
*.test
.testCoverage.txt

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
Expand Down