Update testing.yaml
This commit is contained in:
@@ -19,6 +19,7 @@ jobs:
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: arbeitszeitmessung
|
||||
POSTGRES_PORT: 5432
|
||||
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -27,7 +28,6 @@ jobs:
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: Backend/go.mod
|
||||
check-latest: true
|
||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||
id: hash-go
|
||||
with:
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
id: cache-go
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
path: |-
|
||||
/go_path
|
||||
/go_cache
|
||||
key: arbeitszeitmessung-${{ steps.hash-go.outputs.hash }}
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
- name: Run Go Tests
|
||||
run: cd Backend && go test ./...
|
||||
build:
|
||||
# needs: testing
|
||||
needs: testing
|
||||
name: Build Go Image and Upload
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user