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 a521377f7f - Show all commits

View File

@@ -3,20 +3,33 @@ run-name: ${{ gitea.actor }} is testing golang Code
on: [push]
jobs:
test:
runs-on: docker
container:
image: golang:1.22
testing:
name: check and test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: https://gitea.com/actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Go dependencies
shell: sh
run: |
go mod tidy
- name: Run tests
shell: sh
run: |
go test ./... -v
- name: Setup go
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:
patterns: |
go.mod
go.sum
- name: cache go
id: cache-go
uses: actions/cache@v4
with:
path: |
/go_path
/go_cache
key: go_path-${{ steps.hash-go.outputs.hash }}
- name: test
run: make test