Skip to content

fix: unify git remote URL to always use /git/ prefix #32

fix: unify git remote URL to always use /git/ prefix

fix: unify git remote URL to always use /git/ prefix #32

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# 同一 PR/分支只跑最新一次,节省 minutes
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -coverprofile=coverage.out ./...
- name: Build
run: go build -ldflags "-s -w" -o tinyforge ./cmd/tinyforge
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.4.0
args: --timeout=5m
goreleaser-check:
name: GoReleaser Config
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Validate .goreleaser.yaml
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: check