From a9406cff13858a1e879d6ef033298006def8ede8 Mon Sep 17 00:00:00 2001 From: Natercio Moniz Date: Thu, 20 Nov 2025 11:46:59 +0000 Subject: [PATCH] add gitea workflow for quality --- .gitea/workflows/quality.yml | 31 +++++++++++++++++++++++++++++++ .gitlab-ci.yml | 15 --------------- 2 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 .gitea/workflows/quality.yml delete mode 100644 .gitlab-ci.yml diff --git a/.gitea/workflows/quality.yml b/.gitea/workflows/quality.yml new file mode 100644 index 0000000..05e9bf4 --- /dev/null +++ b/.gitea/workflows/quality.yml @@ -0,0 +1,31 @@ +name: Quality +on: [push] +jobs: + test: + name: Test with Coverage + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.25' + + - name: Check out code + uses: actions/checkout@v2 + + - name: Install dependencies + run: | + go mod download + + - name: Run Unit tests + run: | + go test -race -covermode atomic -coverprofile=coverage.out ./... + + - name: Install goveralls + run: go install github.com/mattn/goveralls@v0.0.12 + + - name: Send coverage + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}} + run: goveralls -coverprofile=coverage.out -service=github + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 584cac1..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,15 +0,0 @@ -image: golang:latest - -stages: - - test - -format: - stage: test - script: - - go fmt gitlab.com/naterciom/gubgub - - go vet gitlab.com/naterciom/gubgub - - go test -race -cover gitlab.com/naterciom/gubgub - coverage: '/coverage: \d+.\d+% of statements/' - - -