-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lukas Zapletal <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
6 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ env: | |
|
||
jobs: | ||
commit: | ||
name: "💾 Commit message" | ||
name: "Commit message" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -30,8 +30,16 @@ jobs: | |
make check-commits | ||
working-directory: code | ||
precommit: | ||
name: "Commit checks" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] | ||
|
||
build: | ||
name: "🛠️ Go Build" | ||
name: "Go Build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -44,7 +52,7 @@ jobs: | |
make check-system-go build GO=go | ||
lint: | ||
name: "🎯 Code format & OpenAPI lint" | ||
name: "Code format & OpenAPI lint" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -67,7 +75,7 @@ jobs: | |
make check-system-go check-fmt validate GO=go | ||
golint: | ||
name: "🎯 Go linter" | ||
name: "Go linter" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -82,7 +90,7 @@ jobs: | |
version: v1.53.3 | ||
|
||
testing: | ||
name: "📎 Unit tests" | ||
name: "Unit tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -96,7 +104,7 @@ jobs: | |
make check-system-go test GO=go | ||
test-dao: | ||
name: "🗄 Integration tests" | ||
name: "Integration tests" | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
|
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,12 @@ | ||
repos: | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.16.1 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json |