Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 372fd8fdc5 | |||
| 40c7487409 |
27
.gitea/workflows/ci.yml
Normal file
27
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.21'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
env:
|
||||||
|
GOPRIVATE: git.marketally.com
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test ./...
|
||||||
|
env:
|
||||||
|
GOPRIVATE: git.marketally.com
|
||||||
28
.gitea/workflows/release.yml
Normal file
28
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.21'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
env:
|
||||||
|
GOPRIVATE: git.marketally.com
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
package pingv1connect
|
package pingv1connect
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "code.gitea.io/actions-proto-go/ping/v1"
|
v1 "git.marketally.com/gitcaddy/actions-proto-go/ping/v1"
|
||||||
connect "connectrpc.com/connect"
|
connect "connectrpc.com/connect"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
package runnerv1connect
|
package runnerv1connect
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "code.gitea.io/actions-proto-go/runner/v1"
|
v1 "git.marketally.com/gitcaddy/actions-proto-go/runner/v1"
|
||||||
connect "connectrpc.com/connect"
|
connect "connectrpc.com/connect"
|
||||||
context "context"
|
context "context"
|
||||||
errors "errors"
|
errors "errors"
|
||||||
|
|||||||
Reference in New Issue
Block a user