31 lines
598 B
YAML
31 lines
598 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
# Runner saat ini: Linux saja. macOS menyusul saat runner-nya tersedia.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: Format check
|
|
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 ./...
|