Skip to content

Commit

Permalink
First upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Oct 21, 2021
0 parents commit a9705c7
Show file tree
Hide file tree
Showing 15 changed files with 1,815 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Please answer these questions before submitting your issue. Thanks! -->

### What did you do?

<!-- Provide all the steps here to reproduce the error. -->

### What did you expect to see?

<!-- Describe what was supposed to happen, but didn't. -->

### What did you see instead?

<!-- Describe the current behavior you consider it's an issue. -->
28 changes: 28 additions & 0 deletions .github/workflows/releasing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Releasing
on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Test application
run: go test ./...
- name: Release application to Github
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Testing
on:
push:
pull_request:

jobs:
test-app:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/[email protected]
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Test application
run: go test ./...
- name: Compile application
run: go build
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
tags:
- netgo
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -extldflags "-static"
archives:
- replacements:
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Patrick D'appollonio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit a9705c7

Please sign in to comment.