diff --git a/.gitea/workflows/go.yaml b/.gitea/workflows/go.yaml new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 2de8cf6..9f11041 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -3,18 +3,15 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: - Explore-Gitea-Actions: + GoLint: runs-on: linux-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version: "1.26" + - uses: golangci/golangci-lint-action@v9 + with: + version: v2.11 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d97d814 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module act-runner-test + +go 1.26.2 diff --git a/main.go b/main.go new file mode 100644 index 0000000..c72c8eb --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "log" + +func main() { + log.Println("Hello, World!") +}