Skip to content

Commit 23f3ac7

Browse files
committed
init
0 parents  commit 23f3ac7

File tree

887 files changed

+345386
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

887 files changed

+345386
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = tab
7+
indent_size = 4
8+
insert_final_newline = true
9+
10+
[Dockerfile]
11+
indent_style = space
12+
13+
[*.{json,yml}]
14+
indent_style = space
15+
indent_size = 2

.github/workflows/releases.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Releases
2+
3+
on:
4+
push:
5+
tags: [ '*' ]
6+
7+
jobs:
8+
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
if: startsWith(github.ref, 'refs/tags/')
13+
steps:
14+
15+
- name: Check out code
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: ^1.16
24+
25+
- name: GoReleaser
26+
uses: goreleaser/goreleaser-action@v2
27+
with:
28+
distribution: goreleaser
29+
version: latest
30+
args: release --rm-dist
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Upload assets
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: devc
38+
path: dist/*

.github/workflows/tests.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Check out code
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ^1.16
25+
26+
- name: Build
27+
run: go build -v -mod vendor .
28+
29+
test:
30+
name: Test
31+
runs-on: ubuntu-latest
32+
steps:
33+
34+
- name: Check out code
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Set up Go
40+
uses: actions/setup-go@v2
41+
with:
42+
go-version: ^1.16
43+
44+
- name: Test
45+
run: go test -v ./...

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Go ###
2+
3+
# Binaries for programs and plugins
4+
*.exe
5+
*.exe~
6+
*.dll
7+
*.so
8+
*.dylib
9+
build/
10+
dist/
11+
12+
# Test binary, built with `go test -c`
13+
*.test
14+
15+
# Output of the go coverage tool, specifically when used with LiteIDE
16+
*.out
17+
18+
# IDEs files
19+
.vscode/
20+
21+
# Secrets
22+
config.toml

.goreleaser.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
before:
2+
hooks:
3+
- "go mod tidy"
4+
builds:
5+
- env:
6+
- "CGO_ENABLED=0"
7+
goos:
8+
- "darwin"
9+
- "freebsd"
10+
- "linux"
11+
- "openbsd"
12+
- "windows"
13+
goarch:
14+
- "amd64"
15+
- "arm64"
16+
changelog:
17+
filters:
18+
exclude:
19+
- "^docs:"
20+
- "^test:"
21+
- "^ci:"
22+
- "typo"

0 commit comments

Comments
 (0)