Skip to content

Commit af19437

Browse files
committed
added workflow
1 parent faae974 commit af19437

5 files changed

Lines changed: 158 additions & 0 deletions

File tree

.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: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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: checkboxes
36+
attributes:
37+
label: OS
38+
description: Operating System where this occured.
39+
options:
40+
- label: Linux
41+
- label: OSX
42+
- label: Termux
43+
- label: Windows
44+
- type: checkboxes
45+
attributes:
46+
label: Shell
47+
description: Shell where this occured.
48+
options:
49+
- label: Bash
50+
- label: Elvish
51+
- label: Fish
52+
- label: Nushell
53+
- label: Oil
54+
- label: Powershell
55+
- label: Xonsh
56+
- label: Zsh
57+
- type: textarea
58+
attributes:
59+
label: Anything else?
60+
description: |
61+
Links? References? Anything that will give us more context about the issue you are encountering!
62+
63+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
64+
validations:
65+
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"

.github/workflows/go.yml

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

0 commit comments

Comments
 (0)