commit cbd8e01b91e0dca451ac7543e2f31c9b2674662e Author: Romane <122701716+rom-vtn@users.noreply.github.com> Date: Fri May 1 19:55:14 2026 +0200 inital test commit diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..edf884b --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,21 @@ +name: Run script on commit + +on: + push: {} + +jobs: + run-bash: + runs-on: ubuntu-latest # use the runner label you have + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Make script executable + run: | + chmod +x ./scripts/test.sh + + - name: Run script on current tree + run: | + ./scripts/test.sh diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..85cfdf7 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module testmodule + +go 1.24.4 diff --git a/main.go b/main.go new file mode 100644 index 0000000..41ecf44 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.PrintLn("Some test yayyy") +} diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100644 index 0000000..61a5d87 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +apt install -y golang +go run main.go + +echo "Done running!"