Skip to content

Commit c5dd0f0

Browse files
committed
tmp
1 parent 5469b6a commit c5dd0f0

File tree

6 files changed

+178
-0
lines changed

6 files changed

+178
-0
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: [rsteube]
4+
polar: carapace-sh
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Bug
2+
description: File a bug/issue
3+
title: "<title>"
4+
labels: [bug, fund]
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Current Behavior
9+
description: A concise description of what you're experiencing.
10+
validations:
11+
required: false
12+
- type: textarea
13+
attributes:
14+
label: Expected Behavior
15+
description: A concise description of what you expected to happen.
16+
validations:
17+
required: false
18+
- type: textarea
19+
attributes:
20+
label: Steps To Reproduce
21+
description: Steps to reproduce the behavior.
22+
placeholder: |
23+
1. In this environment...
24+
2. With this config...
25+
3. Run '...'
26+
4. See error...
27+
validations:
28+
required: false
29+
- type: input
30+
attributes:
31+
label: Version
32+
description: Version where this occured.
33+
validations:
34+
required: false
35+
- type: textarea
36+
attributes:
37+
label: Anything else?
38+
description: |
39+
Links? References? Anything that will give us more context about the issue you are encountering!
40+
41+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
42+
validations:
43+
required: false
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Request
2+
description: Submit a request
3+
title: "<title>"
4+
labels: [enhancement, fund]
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Request
9+
description: Describe the feature or problem you’d like to solve.
10+
validations:
11+
required: false
12+
- type: textarea
13+
attributes:
14+
label: Proposed solution
15+
description: How will it benefit the project and its users.
16+
validations:
17+
required: false
18+
- type: textarea
19+
attributes:
20+
label: Anything else?
21+
description: |
22+
Links? References? Anything that will give us more context about the request!
23+
24+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
25+
validations:
26+
required: false

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
8+
- package-ecosystem: "gomod"
9+
directory: "/cmd"
10+
schedule:
11+
interval: "daily"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "daily"

.github/workflows/go.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Go
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: ghcr.io/carapace-sh/go:1.23.0
11+
steps:
12+
- name: shallow clone
13+
uses: actions/checkout@v4
14+
if: "!startsWith(github.ref, 'refs/tags/')"
15+
16+
- name: deep clone
17+
uses: actions/checkout@v4
18+
if: startsWith(github.ref, 'refs/tags/')
19+
with:
20+
fetch-depth: 0
21+
22+
- name: fix git safe.directory
23+
run: git config --global --add safe.directory '*'
24+
25+
- name: Build
26+
run: go build -v ./...
27+
28+
- name: Test
29+
run: go test -v -coverprofile=profile.cov ./...
30+
31+
- name: "Check formatting"
32+
run: '[ "$(gofmt -d -s . | tee -a /dev/stderr)" = "" ]'
33+
34+
- uses: shogo82148/actions-goveralls@v1
35+
with:
36+
path-to-profile: profile.cov
37+
38+
- name: "staticcheck"
39+
run: go install honnef.co/go/tools/cmd/staticcheck@latest && staticcheck ./...
40+
41+
- name: Run GoReleaser
42+
uses: goreleaser/goreleaser-action@v5
43+
if: startsWith(github.ref, 'refs/tags/')
44+
with:
45+
version: latest
46+
args: release --clean
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
AUR_KEY: ${{ secrets.AUR_KEY }}
50+
GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 2
2+
before:
3+
hooks:
4+
- go mod download
5+
builds:
6+
- id: default
7+
env:
8+
- CGO_ENABLED=0
9+
goos:
10+
- linux
11+
- windows
12+
- darwin
13+
main: ./cmd/carapace-selfupdate
14+
binary: carapace-selfupdate
15+
- id: termux
16+
env:
17+
- CGO_ENABLED=1
18+
goos:
19+
- android
20+
goarch:
21+
- amd64
22+
- arm64
23+
- arm
24+
- "386"
25+
main: ./cmd/carapace-selfupdate
26+
binary: carapace-selfupdate
27+
gobinary: go-termux
28+
archives:
29+
- id: default
30+
builds:
31+
- default
32+
format_overrides:
33+
- goos: windows
34+
format: zip
35+
- id: termux
36+
builds:
37+
- termux
38+
name_template: '{{ .Binary }}_{{ .Version }}_termux_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
39+

0 commit comments

Comments
 (0)