ci: Add Gitea Actions
All checks were successful
continuous-integration/drone/push Build is passing
Test / test (1.20.x) (push) Successful in 8m29s
Test / test (1.21.x) (push) Successful in 11m10s

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-11-07 22:01:18 +01:00
parent 9ef46d33e8
commit 914d5dc71d
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
3 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,35 @@
name: Gitea Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.21'
- name: Install scdoc
run: sudo apt-get install -y scdoc
- name: Release with GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}

View file

@ -0,0 +1,28 @@
name: Test
on: push
jobs:
test:
strategy:
fail-fast: true
matrix:
goVer: ["1.20.x", "1.21.x"]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goVer }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Test
run: make test-ci
- name: Fuzz
run: make fuzz-ci

View file

@ -23,3 +23,6 @@ jobs:
- name: Test
run: make test-ci
- name: Fuzz
run: make fuzz-ci