ci: onboard Gitea actions
All checks were successful
continuous-integration/drone/push Build is passing
Go build / build (push) Successful in 5m51s

This commit is contained in:
Peter 2023-11-08 21:58:09 +01:00
parent 9da1f15533
commit 79342350b2
No known key found for this signature in database
3 changed files with 58 additions and 1 deletions

36
.gitea/workflows/go.yaml Normal file
View file

@ -0,0 +1,36 @@
name: Go build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
lfs: 'true'
fetch-tags: 'true'
- name: Setup Go 1.21.x
uses: actions/setup-go@v4
with:
# Semantic version range syntax or exact version of Go
go-version: '1.21.x'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Install Task
uses: arduino/setup-task@v1
- run: |
go install gotest.tools/gotestsum@latest
task test
- uses: goreleaser/goreleaser-action@v4
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
with:
distribution: goreleaser
version: latest
args: release --clean --snapshot

View file

@ -0,0 +1,21 @@
name: Renovate
on:
schedule:
# The "*" (#42, asterisk) character has special semantics in YAML, so this
# string has to be quoted.
- cron: '42 3 * * *'
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- uses: docker://code.icb4dc0.de/prskr/ci-images/renovate:latest
with:
args: renovate "${{ github.repository }}"
env:
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
RENOVATE_PLATFORM: gitea
RENOVATE_AUTODISCOVER: "false"
RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1
LOG_LEVEL: info

View file

@ -40,7 +40,7 @@ tasks:
- go.sum - go.sum
cmds: cmds:
- go mod download - go mod download
- go mod tidy -compat=1.17 - go mod tidy -compat=1.21
test: test:
sources: sources: