refactor: use tangled as source of truth #4

merged
opened by quietengineer.fyi targeting main from release
  • ci: remove all github workflows except build and test on MRs and instead use tangled's ci
  • ci: remove unsupported event tag
  • chore: add go related items to gitignore
  • build: move config files to .config
  • build: remove goreleaser config for GitHub
  • build: configure goreleaser changelog
  • build: add commitizen for changelogs
  • refactor: use tangled for pkg name
Changed files
+54 -49
.config
.github
.tangled
workflows
-3
.github/workflows/go.yaml
··· 1 1 name: go 2 2 on: 3 - push: 4 - branches: 5 - - main 6 3 pull_request: 7 4 branches: 8 5 - main
-21
.github/workflows/golangci-lint.yaml
··· 1 - name: golangci-lint 2 - on: 3 - push: 4 - branches: 5 - - main 6 - pull_request: 7 - 8 - permissions: 9 - contents: read 10 - 11 - jobs: 12 - golangci: 13 - name: lint 14 - runs-on: ubuntu-latest 15 - steps: 16 - - uses: actions/checkout@v5 17 - - uses: actions/setup-go@v6 18 - with: 19 - go-version: "1.24" 20 - - name: golangci-lint 21 - uses: golangci/golangci-lint-action@v8
-19
.github/workflows/goreleaser.yaml
··· 1 - name: goreleaser 2 - on: 3 - push: 4 - tags: 5 - - "*" 6 - 7 - permissions: 8 - contents: write 9 - 10 - jobs: 11 - goreleaser: 12 - runs-on: ubuntu-latest 13 - steps: 14 - - uses: actions/checkout@v5 15 - - uses: actions/setup-go@v6 16 - - name: run goreleaser 17 - uses: goreleaser/goreleaser-action@v6 18 - with: 19 - args: release --clean
+1 -2
.tangled/workflows/release.yaml
··· 1 1 when: 2 - - event: ["tag"] 3 - branch: ["main"] 2 + - event: ["manual"] 4 3 5 4 engine: "nixery" 6 5
+32 -1
.gitignore
··· 1 - node_modules 1 + # Binaries for programs and plugins 2 + *.exe 3 + *.exe~ 4 + *.dll 5 + *.so 6 + *.dylib 7 + 8 + # Test binary, built with `go test -c` 9 + *.test 10 + 11 + # Code coverage profiles and other test artifacts 12 + *.out 13 + coverage.* 14 + *.coverprofile 15 + profile.cov 16 + 17 + # Dependency directories 18 + vendor/ 19 + 20 + # Go workspace file 21 + go.work 22 + go.work.sum 23 + 24 + # goreleaser 25 + dist/ 26 + 27 + # env file 28 + *.env 29 + 30 + # Editor/IDE 31 + .idea/ 32 + .vscode/
+11 -1
.config/goreleaser.yaml
··· 43 43 44 44 changelog: 45 45 sort: asc 46 + abbrev: -1 47 + groups: 48 + - title: Features 49 + regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' 50 + order: 0 51 + - title: Bug Fixes 52 + regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' 53 + order: 1 54 + - title: Others 55 + order: 999 56 + 46 57 filters: 47 58 exclude: 48 - - "^docs:" 49 59 - "^test:" 50 60 - "^chore:"
+8
.cz.yaml
··· 1 + --- 2 + commitizen: 3 + major_version_zero: true 4 + name: cz_conventional_commits 5 + tag_format: v$version 6 + update_changelog_on_bump: true 7 + version_provider: scm 8 + version_scheme: semver2
+1 -1
go.mod
··· 1 - module github.com/QuietEngineer/pdsadmin 1 + module tangled.sh/quietengineer.fyi/pdsadmin 2 2 3 3 go 1.23.6 4 4
+1 -1
main.go
··· 21 21 */ 22 22 package main 23 23 24 - import "github.com/QuietEngineer/pdsadmin/cmd" 24 + import "tangled.sh/quietengineer.fyi/pdsadmin/cmd" 25 25 26 26 func main() { 27 27 cmd.Execute()