chore: migrasi kanonik ke gitea.oxpoe.qzz.io/oxpoe/tia-love (module path, installer, Gitea Actions, goreleaser)
This commit is contained in:
1 parent
25bb3e1d2b
commit
8933906102
10 files changed
+30
-21
No files matched your search
@@ -0,0 +1,34 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Format check
|
||||
if: runner.os == 'Linux'
|
||||
run: test -z "$(gofmt -l cmd internal)"
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Build (CGO_ENABLED=0 — mode rilis)
|
||||
run: CGO_ENABLED=0 go build ./cmd/tia-love
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
Reference in new issue
Block a user