diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..f3b2288 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -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 }} diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..6a0afbf --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7f495bd..cb9e43f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,3 +23,6 @@ jobs: - name: Test run: make test-ci + + - name: Fuzz + run: make fuzz-ci