ci: onboard Gitea actions
This commit is contained in:
parent
9da1f15533
commit
79342350b2
3 changed files with 58 additions and 1 deletions
36
.gitea/workflows/go.yaml
Normal file
36
.gitea/workflows/go.yaml
Normal 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
|
21
.gitea/workflows/renovate.yaml
Normal file
21
.gitea/workflows/renovate.yaml
Normal 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
|
|
@ -40,7 +40,7 @@ tasks:
|
|||
- go.sum
|
||||
cmds:
|
||||
- go mod download
|
||||
- go mod tidy -compat=1.17
|
||||
- go mod tidy -compat=1.21
|
||||
|
||||
test:
|
||||
sources:
|
||||
|
|
Loading…
Reference in a new issue