-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f9db59
commit 75a3d0e
Showing
13 changed files
with
128 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Go | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
escobar: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Golang | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18.x | ||
|
||
- name: Setup modules cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Download dependencies | ||
run: go mod download | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.45.2 | ||
|
||
- name: Build | ||
run: go build ./cmd/escobar | ||
|
||
- name: Test | ||
run: go test -gcflags=all=-l -v ./... | ||
|
||
- name: Test race | ||
run: go test -gcflags=all=-l -race -v ./... | ||
|
||
- name: Release | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Goland (IDEA) | ||
.idea | ||
/.idea | ||
|
||
# Personal testing config | ||
configs/keytabs/personal.keytab | ||
configs/personal.env | ||
|
||
# Binaries | ||
bin/ | ||
/dist/ | ||
escobar | ||
escobar.exe |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
project_name: escobar | ||
|
||
release: | ||
github: | ||
owner: L11R | ||
name: escobar | ||
|
||
builds: | ||
- binary: escobar | ||
goos: | ||
- darwin | ||
- windows | ||
- linux | ||
- freebsd | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
- arm | ||
- 386 | ||
- ppc64le | ||
- s390x | ||
- mips64 | ||
- mips64le | ||
- riscv64 | ||
goarm: | ||
- 6 | ||
- 7 | ||
gomips: | ||
- hardfloat | ||
env: | ||
- CGO_ENABLED=0 | ||
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
- goos: freebsd | ||
goarch: arm64 | ||
main: ./cmd/escobar/main.go | ||
flags: | ||
- -trimpath | ||
ldflags: -s -w -X $(PROJECT)/internal/version.Version={{.Version}} -X $(PROJECT)/internal/version.Commit={{.ShortCommit}} | ||
|
||
archives: | ||
- format: tar.gz | ||
wrap_in_directory: true | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' | ||
files: | ||
- LICENSE | ||
- README.md | ||
|
||
snapshot: | ||
name_template: SNAPSHOT-{{ .Commit }} | ||
|
||
checksum: | ||
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters