-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: setup basic project CI and issue reporting
- Loading branch information
Showing
11 changed files
with
212 additions
and
9 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,2 @@ | ||
* @adamdecaf | ||
* @wadearnold |
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,47 @@ | ||
--- | ||
name: Report an issue | ||
description: | ||
Tell us about something that is not working the way we (probably) intend | ||
body: | ||
- type: input | ||
id: cadeft-version | ||
attributes: | ||
label: cadeft Version | ||
description: What version of cadeft are you using? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: intention | ||
attributes: | ||
label: What were you trying to do? | ||
description: > | ||
Describe how you were using the cadeft library. Include code samples, | ||
errors, and stacktraces if appropriate. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: What did you expect to see? | ||
description: > | ||
A short description on how you expect the code to behave. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: current-behavior | ||
attributes: | ||
label: What did you see? | ||
description: Share any logs, errors, or stacktraces that you saw. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction-steps | ||
attributes: | ||
label: How can we reproduce the problem? | ||
description: Help us reproduce the problem by sharing a minimal example. | ||
validations: | ||
required: true |
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,2 @@ | ||
--- | ||
blank_issues_enabled: true |
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,31 @@ | ||
--- | ||
name: Feature Request | ||
description: | ||
Let us know of a feature or request | ||
body: | ||
- type: textarea | ||
id: cadeft-version | ||
attributes: | ||
label: cadeft Version | ||
description: What version of cadeft are you using? | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: intention | ||
attributes: | ||
label: What were you trying to do? | ||
description: > | ||
Describe how you were using the cadeft library. Include code samples, | ||
errors, and stacktraces if appropriate. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: What did you expect to see? | ||
description: > | ||
A short description on how you expect the code to behave. | ||
validations: | ||
required: true |
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,21 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
|
||
- package-ecosystem: docker | ||
directory: / | ||
schedule: | ||
interval: daily | ||
|
||
- package-ecosystem: bundler | ||
directory: /docs | ||
schedule: | ||
interval: daily | ||
|
||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: daily |
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,35 @@ | ||
# Use https://app.stepsecurity.io/ to improve workflow security | ||
name: CodeQL Analysis | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 10 * * 0' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
CodeQL-Build: | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: go | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
env: | ||
GOOS: js | ||
GOARCH: wasm |
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,41 @@ | ||
# Use https://app.stepsecurity.io/ to improve workflow security | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Go Build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: stable | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install make (Windows) | ||
if: runner.os == 'Windows' | ||
run: choco install -y make mingw | ||
|
||
- name: Check | ||
run: make check | ||
env: | ||
GOLANGCI_LINTERS: gosec | ||
|
||
- name: Upload Code Coverage | ||
if: runner.os == 'Linux' | ||
run: bash <(curl -s https://codecov.io/bash) |
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 |
---|---|---|
|
@@ -19,3 +19,8 @@ | |
|
||
# Go workspace file | ||
go.work | ||
|
||
|
||
/bin/ | ||
gitleaks.tar.gz | ||
lint-project.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.PHONY: check | ||
check: | ||
ifeq ($(OS),Windows_NT) | ||
@echo "Skipping checks on Windows, currently unsupported." | ||
else | ||
@wget -O lint-project.sh https://raw.githubusercontent.com/moov-io/infra/master/go/lint-project.sh | ||
@chmod +x ./lint-project.sh | ||
COVER_THRESHOLD=75.0 ./lint-project.sh | ||
endif | ||
|
||
.PHONY: clean | ||
clean: | ||
@rm -rf ./bin/ ./tmp/ coverage.txt misspell* staticcheck lint-project.sh | ||
|
||
.PHONY: cover-test cover-web | ||
cover-test: | ||
go test -coverprofile=cover.out ./... | ||
cover-web: | ||
go tool cover -html=cover.out |