ci: Add Gitea Actions #228

Merged
sam merged 3 commits from actions into master 2023-11-07 20:27:18 +00:00
3 changed files with 66 additions and 0 deletions
Showing only changes of commit 914d5dc71d - Show all commits

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