dev/actions feature: overtime #27

Merged
tom_trgr merged 53 commits from dev/actions into main 2025-09-04 00:58:25 +02:00
Showing only changes of commit 8f8f67398b - Show all commits

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