This commit is contained in:
@@ -26,7 +26,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Setup go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: Backend/go.mod
|
||||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
id: hash-go
|
id: hash-go
|
||||||
with:
|
with:
|
||||||
@@ -43,10 +46,6 @@ jobs:
|
|||||||
key: arbeitszeitmessung-${{ steps.hash-go.outputs.hash }}
|
key: arbeitszeitmessung-${{ steps.hash-go.outputs.hash }}
|
||||||
restore-keys: |-
|
restore-keys: |-
|
||||||
arbeitszeitmessung-
|
arbeitszeitmessung-
|
||||||
- name: Setup go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: Backend/go.mod
|
|
||||||
- name: Run Go Tests
|
- name: Run Go Tests
|
||||||
run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json
|
run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json
|
||||||
- name: Verify coverage report exists
|
- name: Verify coverage report exists
|
||||||
|
|||||||
Reference in New Issue
Block a user