Skip to content

Commit 04584e7

Browse files
committed
first commit
Signed-off-by: Pierre-Henri Symoneaux <[email protected]>
0 parents  commit 04584e7

Some content is hidden

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

43 files changed

+8973
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint Conventional Commits
2+
description: Verify that all the commits complies to the conventional commit convention
3+
4+
inputs:
5+
config:
6+
description: Path to the configuration file
7+
default: .github/commitlint.config.js
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Install commitlint
13+
shell: bash
14+
run: |
15+
npm install conventional-changelog-conventionalcommits
16+
npm install commitlint@latest
17+
npm install @commitlint/{cli,config-conventional}
18+
19+
- name: Validate current commit (last commit) with commitlint
20+
if: github.event_name == 'push'
21+
shell: bash
22+
run: npx commitlint --config ${{ inputs.config }} --last --verbose
23+
24+
- name: Validate PR commits with commitlint
25+
if: github.event_name == 'pull_request'
26+
shell: bash
27+
run: npx commitlint --config ${{ inputs.config }} --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Setup Build Env
2+
description: Setup build environment with go and protoc
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Set up Go
8+
uses: actions/setup-go@v4
9+
with:
10+
go-version: "1.23"

.github/codegen/mockery.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
with-expecter: true
2+
inpackage: false
3+
dir: "{{.InterfaceDir}}/mocks"
4+
mockname: "{{.InterfaceName}}Mock"
5+
outpkg: "mocks"
6+
packages:
7+
github.com/ovh/okms-sdk-go:
8+
interfaces:
9+
# RandomApi:
10+
DataKeyApi:
11+
SignatureApi:
12+
EncryptionApi:
13+
ServiceKeyApi:
14+
# SecretApi:
15+
Client:
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
2+
package: internal
3+
output: internal/client.gen.go
4+
generate:
5+
client: true
6+
output-options:
7+
exclude-tags:
8+
- SecretsApi
9+
exclude-operation-ids:
10+
- GenerateRandomBytes
11+
skip-prune: false
12+
response-type-suffix: HTTPResponse
13+
additional-imports:
14+
- package: github.com/ovh/okms-sdk-go/types
15+
alias: "."
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json
2+
package: types
3+
output: types/types.gen.go
4+
generate:
5+
models: true
6+
output-options:
7+
exclude-tags:
8+
- SecretsApi
9+
exclude-operation-ids:
10+
- GenerateRandomBytes
11+
skip-prune: false
12+
response-type-suffix: HTTPResponse

0 commit comments

Comments
 (0)