Update testing.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
arbeitszeitmessung/pipeline/head There was a failure building this commit
GoLang Tests / test (push) Failing after 55s

This commit is contained in:
2025-08-21 07:59:41 +02:00
parent 8fa5eafd80
commit 8f8f67398b

View File

@@ -3,8 +3,25 @@ run-name: ${{ gitea.actor }} is testing golang Code
on: [push] on: [push]
jobs: jobs:
Run-Go-Test: test:
runs-on: golang runs-on: docker
container:
image: golang:1.22
steps: steps:
- run: go version - name: Checkout code
- run: go test ./... uses: actions/checkout@v4
- name: Set up Go cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: |
go mod tidy
go test ./... -v