File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - ' *'
1313
1414jobs :
15- test-without-docker :
16- runs-on : ubuntu-latest
17- steps :
18- - name : Checkout code
19- uses : actions/checkout@v6
20- - name : Set up Go
21- uses : actions/setup-go@v6
22- with :
23- go-version-file : ' go.mod'
24- - name : Test quickly without Docker
25- run : go test -v ./...
26-
27- test-with-docker :
28- # We don't need to run this longer test if the previous one already failed.
29- needs : test-without-docker
15+ test :
3016 runs-on : ubuntu-latest
3117 services :
3218 dind :
@@ -40,15 +26,15 @@ jobs:
4026 uses : actions/setup-go@v6
4127 with :
4228 go-version-file : ' go.mod'
43- - name : Run tests with Docker and calculate coverage
29+ - name : Run tests and calculate coverage
4430 run : |
4531 export GITHUB_ACTIONS=1
4632 export POSTGRES_CONTAINER=1
4733
4834 echo "Running tests..."
4935 go test -v \
5036 -coverpkg=./internal/... \
51- -coverprofile=profile.cov ./internal/ ...
37+ -coverprofile=profile.cov ./...
5238
5339 # Exclude e2e files from the coverage profile so they don't
5440 # count against the coverage percentage.
You can’t perform that action at this time.
0 commit comments