Skip to content

Commit 396947c

Browse files
authored
feat: initial scaffolding (#1)
1 parent a7406b4 commit 396947c

File tree

133 files changed

+24039
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+24039
-0
lines changed

.air.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
root = "."
2+
testdata_dir = "testdata"
3+
tmp_dir = "tmp"
4+
5+
[build]
6+
args_bin = ["start"]
7+
bin = "./tmp/main"
8+
cmd = "go build -o ./tmp/main ."
9+
delay = 0
10+
exclude_dir = ["assets", "tmp", "vendor", "testdata", "docs", "examples"]
11+
exclude_file = []
12+
exclude_regex = ["_test.go"]
13+
exclude_unchanged = false
14+
follow_symlink = false
15+
full_bin = ""
16+
include_dir = []
17+
include_ext = ["go", "tpl", "tmpl", "html", "rego"]
18+
include_file = []
19+
kill_delay = "0s"
20+
log = "build-errors.log"
21+
rerun = false
22+
rerun_delay = 500
23+
send_interrupt = false
24+
stop_on_error = true
25+
26+
[color]
27+
app = ""
28+
build = "yellow"
29+
main = "magenta"
30+
runner = "green"
31+
watcher = "cyan"
32+
33+
[log]
34+
main_only = false
35+
time = false
36+
37+
[misc]
38+
clean_on_exit = true
39+
40+
[screen]
41+
clear_on_rebuild = false
42+
keep_scroll = true

.github/workflows/go-checks.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Golang Checks"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
jobs:
8+
golangci:
9+
name: lint
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
13+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
14+
with:
15+
go-version: '1.21'
16+
cache: false
17+
- name: golangci-lint
18+
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
19+
with:
20+
version: v1.55
21+
vulncheck:
22+
name: vulncheck
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- name: govluncheck
26+
uses: golang/govulncheck-action@7da72f730e37eeaad891fcff0a532d27ed737cd4
27+
with:
28+
go-version-file: 'go.mod'
29+
unit:
30+
name: unit tests
31+
runs-on: ubuntu-22.04
32+
steps:
33+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
34+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
35+
with:
36+
go-version: '1.21'
37+
cache: false
38+
- name: Unit Tests with the Go CLI
39+
run: go test ./... -short -race -cover
40+
integration:
41+
name: integration tests
42+
runs-on: ubuntu-22.04
43+
steps:
44+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
45+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
46+
with:
47+
go-version: '1.21'
48+
cache: false
49+
- name: Integration Tests with the Go CLI
50+
run: go test ./tests -race

.github/workflows/pr-checks.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Lint PR"
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
permissions:
9+
pull-requests: read
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Proto Checks"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
jobs:
8+
buflint:
9+
name: lint
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
13+
- uses: bufbuild/buf-setup-action@382440cdb8ec7bc25a68d7b4711163d95f7cc3aa
14+
# Run lint only in the `proto` sub-directory
15+
- uses: bufbuild/buf-lint-action@044d13acb1f155179c606aaa2e53aea304d22058
16+
with:
17+
input: proto
18+
bufbreaking:
19+
name: Buf Breaking Change Detection
20+
runs-on: ubuntu-22.04
21+
steps:
22+
# Run `git checkout`
23+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
24+
# Install the `buf` CLI
25+
- uses: bufbuild/buf-setup-action@382440cdb8ec7bc25a68d7b4711163d95f7cc3aa
26+
# Run breaking change detection against the `main` branch
27+
- uses: bufbuild/buf-breaking-action@a074e988ee34efcd4927079e79c611f428354c01
28+
with:
29+
input: proto
30+
against: 'https://github.com/opentdf/opentdf-v2-poc.git#branch=main'

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# If you prefer the allow list template instead of the deny list, see community template:
2+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3+
#
4+
# Binaries for programs and plugins
5+
*.exe
6+
*.exe~
7+
*.dll
8+
*.so
9+
*.dylib
10+
11+
# Test binary, built with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool, specifically when used with LiteIDE
15+
*.out
16+
17+
# Dependency directories (remove the comment below to include it)
18+
# vendor/
19+
20+
# Go workspace file
21+
go.work
22+
23+
tmp/
24+
.DS_Store
25+
__pycache__

0 commit comments

Comments
 (0)