From 8353e82f4fb0e0b7f5d6ce1bcab8215c483be43f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 14 Apr 2025 19:22:50 +0200 Subject: [PATCH] chore(ci): add golang tests --- .gitea/workflows/golang-tests.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/golang-tests.yml diff --git a/.gitea/workflows/golang-tests.yml b/.gitea/workflows/golang-tests.yml new file mode 100644 index 0000000..56f4a7b --- /dev/null +++ b/.gitea/workflows/golang-tests.yml @@ -0,0 +1,24 @@ +name: Golang Tests + +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + push: + branches: + - '**' + tags-ignore: + - '**' + +jobs: + unittest: + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4.2.2 + - uses: actions/setup-go@v5.4.0 + with: + go-version: stable + - env: + GONOSUMDB: ${{ vars.GONOSUMDB }} + GOPROXY: ${{ vars.GOPROXY }} + run: make test/unit