Skip to content

Commit

Permalink
Refactor, multiple fixes and add temporal runtime (#66)
Browse files Browse the repository at this point in the history
* fix docker ex

* manage runtime dependency

* replace haproxy with envoy

* fix MET-60

* fix MET-85

* fix tests

* fix tests

* refactor script

* add missing files

* refactor native

* add temporal rust

* refactor deno_bindgen to avoid macro panic-ing due to concurrent compilation and bindings.json

* add temporal

* add protoc

* fix tests

* upgrade

* fix unix

* fix crash

* fix crash
  • Loading branch information
zifeo authored Jan 23, 2023
1 parent 319351a commit 57d7df9
Show file tree
Hide file tree
Showing 85 changed files with 6,576 additions and 2,051 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
env:
PYTHON_VERSION: "3.8"
POETRY_VERSION: "1.3.1"
DENO_VERSION: "1.29.2"
DENO_VERSION: "1.29.4"

jobs:
check-bump:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:

env:
PYTHON_VERSION: "3.8"
PROTOC_VERSION: "3.x"
POETRY_VERSION: "1.3.1"
DENO_BINDGEN_URL: https://github.com/denoland/deno_bindgen/raw/main/cli.ts
DENO_VERSION: "1.29.2"
DENO_VERSION: "1.29.4"
PNPM_VERSION: "7.9.3"
NODE_VERSION: "18.12.1"

Expand Down Expand Up @@ -56,6 +57,9 @@ jobs:
- uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
- uses: arduino/setup-protoc@v1
with:
version: ${{ env.PROTOC_VERSION }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: denoland/setup-deno@v1
Expand Down Expand Up @@ -230,6 +234,9 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: arduino/setup-protoc@v1
with:
version: ${{ env.PROTOC_VERSION }}
- uses: actions/cache@v3
with:
path: .venv
Expand All @@ -244,7 +251,7 @@ jobs:
source .venv/bin/activate
pip3 install ./typegraph
deno install -A -n deno_bindgen $DENO_BINDGEN_URL
OUT_DIR=target deno_bindgen -- --locked --package native
OUT_DIR=target deno_bindgen -- --locked --package native -F deno
which py-tg
deno run -A dev/test.ts
cargo test --locked --workspace --package native
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.39.1
rev: v2.40.0
hooks:
- id: commitizen
stages: [commit-msg]
Expand All @@ -37,7 +37,7 @@ repos:
- id: cargo-check
args: ["--locked"]
- id: clippy
args: ["--locked", "--", "--deny", "warnings", "--allow", "dead-code"]
args: ["--locked", "--", "--deny", "warnings"]
- repo: local
hooks:
- id: deno-fmt
Expand Down Expand Up @@ -72,7 +72,7 @@ repos:
entry: bash -c 'deno run -A dev/lock.ts'
pass_filenames: false
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
rev: v1.4.1
hooks:
- id: insert-license
name: "License header python"
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"deno.unstable": true
"deno.unstable": true,
"rust-analyzer.checkOnSave": true
}
Loading

0 comments on commit 57d7df9

Please sign in to comment.