File tree 17 files changed +398
-760
lines changed
17 files changed +398
-760
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- server /assets /* linguist-vendored
1
+ server /utils / assets /* linguist-vendored
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
+ "extends" : [" config:best-practices" , " :automergeMinor" , " :automergeDigest" ]
4
+ }
Original file line number Diff line number Diff line change
1
+ name : docker
2
+ on :
3
+ push :
4
+ branches : ["main"]
5
+ tags :
6
+ - " *"
7
+
8
+ env :
9
+ REGISTRY : ghcr.io
10
+ IMAGE_NAME : ${{ github.repository }}
11
+
12
+ jobs :
13
+ build-and-push-image :
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : read
17
+ packages : write
18
+
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22
+
23
+ - name : Log in to the Container registry
24
+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
25
+ with :
26
+ registry : ${{ env.REGISTRY }}
27
+ username : ${{ github.actor }}
28
+ password : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - name : Extract metadata (tags, labels) for Docker
31
+ id : meta
32
+ uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
33
+ with :
34
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
35
+ tags : |
36
+ type=semver,pattern={{version}}
37
+ type=semver,pattern={{major}}.{{minor}}
38
+ type=ref,event=branch
39
+ type=sha
40
+
41
+ - name : Build and push Docker image
42
+ uses : docker/build-push-action@0adf9959216b96bec444f325f1e493d4aa344497 # v6
43
+ with :
44
+ context : .
45
+ push : true
46
+ tags : ${{ steps.meta.outputs.tags }}
47
+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change
1
+ name : golang
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches : [main]
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
13
+ - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
14
+ with :
15
+ go-version-file : " go.mod"
16
+ - name : build
17
+ run : make
18
+
19
+ test :
20
+ needs : build
21
+ runs-on : ubuntu-latest
22
+ permissions :
23
+ contents : write
24
+ issues : write
25
+ pull-requests : write
26
+ steps :
27
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
28
+ with :
29
+ fetch-depth : 10
30
+ - uses : gwatts/go-coverage-action@2845595538a59d63d1bf55f109c14e104c6f7cb3 # v2
31
+ with :
32
+ fail-coverage : never
33
+ cover-pkg : ./...
34
+
35
+ goreleaser :
36
+ needs : build
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - name : Checkout
40
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
41
+ with :
42
+ fetch-depth : 0
43
+ - name : Set up Go
44
+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
45
+ with :
46
+ go-version : stable
47
+ - name : Run GoReleaser
48
+ uses : goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6
49
+ with :
50
+ distribution : goreleaser
51
+ version : " ~> v2"
52
+ args : release --snapshot --clean
53
+
54
+ # TODO: Fix various errcheck errors
55
+ #
56
+ # golangci:
57
+ # needs: build
58
+ # runs-on: ubuntu-latest
59
+ # permissions:
60
+ # contents: read
61
+ # pull-requests: read
62
+ # checks: write
63
+ # steps:
64
+ # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
65
+ # - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
66
+ # with:
67
+ # go-version-file: "go.mod"
68
+ # - name: golangci-lint
69
+ # uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6
70
+ # with:
71
+ # version: latest
72
+ # args: --timeout=3m
Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " *"
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ goreleaser :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17
+ with :
18
+ fetch-depth : 0
19
+ - name : Set up Go
20
+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
21
+ with :
22
+ go-version : stable
23
+ - name : Run GoReleaser
24
+ uses : goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6
25
+ with :
26
+ distribution : goreleaser
27
+ version : " ~> v2"
28
+ args : release --clean
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ vendor/
17
17
docs /env /
18
18
docs /site /
19
19
.vscode /
20
+
21
+ dist /
Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ before :
4
+ hooks :
5
+ - go mod tidy
6
+
7
+ builds :
8
+ - id : server
9
+ main : ./server/
10
+ binary : goploader-server
11
+ env :
12
+ - CGO_ENABLED=0
13
+ goos :
14
+ - linux
15
+ - windows
16
+ - darwin
17
+ ldflags :
18
+ - -s -w
19
+
20
+ - id : client
21
+ main : ./client/
22
+ binary : gpldr
23
+ env :
24
+ - CGO_ENABLED=0
25
+ goos :
26
+ - linux
27
+ - windows
28
+ - darwin
29
+ ldflags :
30
+ - -s -w
31
+
32
+ archives :
33
+ - id : server_archive
34
+ builds : [server]
35
+ formats : tar.gz
36
+ # this name template makes the OS and Arch compatible with the results of `uname`.
37
+ name_template : >-
38
+ {{ .ProjectName }}_server_
39
+ {{- title .Os }}_
40
+ {{- if eq .Arch "amd64" }}x86_64
41
+ {{- else if eq .Arch "386" }}i386
42
+ {{- else }}{{ .Arch }}{{ end }}
43
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
44
+ # use zip for windows archives
45
+ format_overrides :
46
+ - goos : windows
47
+ formats : zip
48
+
49
+ - id : client_archive
50
+ builds : [client]
51
+ formats : tar.gz
52
+ # this name template makes the OS and Arch compatible with the results of `uname`.
53
+ name_template : >-
54
+ {{ .ProjectName }}_client_
55
+ {{- title .Os }}_
56
+ {{- if eq .Arch "amd64" }}x86_64
57
+ {{- else if eq .Arch "386" }}i386
58
+ {{- else }}{{ .Arch }}{{ end }}
59
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
60
+ # use zip for windows archives
61
+ format_overrides :
62
+ - goos : windows
63
+ formats : zip
64
+
65
+ changelog :
66
+ sort : asc
67
+ filters :
68
+ exclude :
69
+ - " ^docs:"
70
+ - " ^test:"
71
+
72
+ release :
73
+ footer : >-
74
+
75
+ ---
76
+
77
+ Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
You can’t perform that action at this time.
0 commit comments