generated from devnw/oss-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
5a06730
commit 1fec467
Showing
28 changed files
with
738 additions
and
145 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ automations: | |
run: | ||
- action: set-required-approvals@v1 | ||
args: | ||
approvals: 2 | ||
approvals: 2 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
* @benjivesterby | ||
* @benjivesterby |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ updates: | |
schedule: | ||
interval: "daily" | ||
labels: | ||
- "automerge" | ||
- "automerge" |
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 |
---|---|---|
@@ -1,44 +1,12 @@ | ||
name: Build & Test | ||
name: Lint, Build & Test | ||
|
||
# this is triggered on push to the repository | ||
on: [push, pull_request] | ||
|
||
env: | ||
GH_ACCESS_TOKEN: ${{ secrets.GH_PAT }} | ||
|
||
jobs: | ||
build: | ||
name: "Build" | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
fail-fast: true | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.x | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Build | ||
run: go build ./... | ||
test: | ||
name: "Unit Tests" | ||
needs: [build] | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
fail-fast: true | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.x | ||
- name: Test | ||
run: go test -failfast ./... -race -coverprofile=coverage.txt -covermode=atomic | ||
- name: Push Coverage to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.txt | ||
lint-build-test: | ||
name: Lint, Build & Test | ||
uses: devnw/workflows/.github/workflows/make-build-nix.yml@main | ||
secrets: inherit # pragma: allowlist secret |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
builds: | ||
- skip: true | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
snapshot: | ||
name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}" | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
|
||
release: | ||
prerelease: auto |
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,32 +1,47 @@ | ||
exclude: '^data/|.env' | ||
fail_fast: true | ||
repos: | ||
- repo: https://github.com/Yelp/detect-secrets | ||
- repo: local | ||
hooks: | ||
- id: license-header | ||
name: License Header | ||
entry: ./scripts/license.py | ||
language: system | ||
always_run: true | ||
- repo: https://github.com/Yelp/detect-secrets | ||
rev: v1.4.0 | ||
hooks: | ||
- id: detect-secrets | ||
- id: detect-secrets | ||
name: Detect secrets | ||
language: python | ||
entry: detect-secrets-hook | ||
args: ['--baseline', '.secrets.baseline'] | ||
- repo: https://github.com/golangci/golangci-lint | ||
rev: v1.54.2 | ||
hooks: | ||
- id: golangci-lint | ||
- repo: https://github.com/Bahjat/pre-commit-golang | ||
rev: v1.0.3 # pragma: allowlist secret | ||
args: | ||
- '--baseline' | ||
- '.secrets.baseline' | ||
- repo: https://github.com/sqlfluff/sqlfluff | ||
rev: 3.0.0a6 | ||
hooks: | ||
- id: go-unit-tests | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
- id: sqlfluff-fix | ||
- repo: https://github.com/syntaqx/git-hooks | ||
rev: v0.0.18 | ||
hooks: | ||
- id: check-json | ||
- id: pretty-format-json | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.37.0 | ||
- id: forbid-binary | ||
- id: shellcheck | ||
- id: shfmt | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.18.2 | ||
hooks: | ||
- id: markdownlint-fix | ||
- repo: https://github.com/koalaman/shellcheck-precommit | ||
rev: v0.9.0 | ||
- id: commitizen | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: shellcheck | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-vcs-permalinks | ||
- id: check-toml | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: end-of-file-fixer |
Oops, something went wrong.