forked from hatchet-dev/hatchet
-
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.
Merge remote-tracking branch 'upstream/main' into typescript-client
- Loading branch information
Showing
105 changed files
with
3,903 additions
and
1,110 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 |
---|---|---|
|
@@ -102,6 +102,7 @@ jobs: | |
|
||
e2e: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
env: | ||
DATABASE_URL: postgresql://hatchet:[email protected]:5431/hatchet | ||
|
||
|
@@ -153,14 +154,17 @@ jobs: | |
. .env | ||
set +a | ||
go run ./cmd/hatchet-admin seed | ||
go run ./cmd/hatchet-admin quickstart | ||
go run ./cmd/hatchet-engine & | ||
go run ./cmd/hatchet-api & | ||
go run ./cmd/hatchet-engine --config ./generated/ & | ||
go run ./cmd/hatchet-api --config ./generated/ & | ||
sleep 30 | ||
- name: Test | ||
run: go test -tags e2e ./... -p 1 -v -failfast | ||
run: | | ||
export HATCHET_CLIENT_TOKEN="$(go run ./cmd/hatchet-admin token create --config ./generated/ --tenant-id 707d0855-80ab-4e1f-a156-f1c4546cbf52)" | ||
go test -tags e2e ./... -p 1 -v -failfast | ||
- name: Teardown | ||
run: docker compose down |
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 |
---|---|---|
|
@@ -85,3 +85,5 @@ tmp | |
|
||
postgres-data | ||
rabbitmq.conf | ||
|
||
*encryption-keys |
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,7 @@ | ||
repos: | ||
- repo: https://github.com/gitguardian/ggshield | ||
rev: v1.23.0 | ||
hooks: | ||
- id: ggshield | ||
language_version: python3 | ||
stages: [commit] |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
APIToken: | ||
type: object | ||
properties: | ||
metadata: | ||
$ref: "./metadata.yaml#/APIResourceMeta" | ||
name: | ||
type: string | ||
description: The name of the API token. | ||
maxLength: 255 | ||
expiresAt: | ||
type: string | ||
format: date-time | ||
description: When the API token expires. | ||
required: | ||
- metadata | ||
- name | ||
- expiresAt | ||
|
||
CreateAPITokenRequest: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: A name for the API token. | ||
maxLength: 255 | ||
required: | ||
- name | ||
|
||
CreateAPITokenResponse: | ||
type: object | ||
properties: | ||
token: | ||
type: string | ||
description: The API token. | ||
required: | ||
- token | ||
|
||
ListAPITokensResponse: | ||
properties: | ||
pagination: | ||
$ref: "./metadata.yaml#/PaginationResponse" | ||
rows: | ||
items: | ||
$ref: "#/APIToken" | ||
type: array |
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
Oops, something went wrong.