-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into test-runner
# Conflicts: # Cargo.lock # dev/deps.ts # dev/test.ts
- Loading branch information
Showing
946 changed files
with
71,820 additions
and
55,357 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,19 @@ | ||
push-hook = true | ||
push-new-branches = false | ||
ship-delete-tracking-branch = false | ||
sync-before-ship = true | ||
sync-upstream = true | ||
|
||
[branches] | ||
main = "main" | ||
perennials = [] | ||
perennial-regex = "" | ||
|
||
[hosting] | ||
# platform = "" | ||
# origin-hostname = "" | ||
|
||
[sync-strategy] | ||
|
||
feature-branches = "rebase" | ||
perennial-branches = "rebase" |
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<!-- | ||
Pull requests are squash merged using: | ||
Pull requests are squashed and merged using: | ||
- their title as the commit message | ||
- their description as the commit body | ||
Having a good title and description is important for the users to get readable changelog and understand when they need to update his code and how. | ||
Having a good title and description is important for the users to get readable changelog. | ||
--> | ||
|
||
<!-- Explain WHAT the change is --> | ||
<!-- 1. Explain WHAT the change is about --> | ||
|
||
#### Motivation and context | ||
- | ||
|
||
<!-- Explain WHY the was made or link an issue number --> | ||
<!-- 2. Explain WHY the change cannot be made simpler --> | ||
|
||
#### Migration notes | ||
- | ||
|
||
<!-- 3. Explain HOW users should update their code --> | ||
|
||
<!-- Explain HOW users should update their code when required --> | ||
#### Migration notes | ||
|
||
### Checklist | ||
... | ||
|
||
- [ ] The change come with new or modified tests | ||
- [ ] The change comes with new or modified tests | ||
- [ ] Hard-to-understand functions have explanatory comments | ||
- [ ] End-user documentation is updated to reflect the change |
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,119 @@ | ||
on: | ||
merge_group: | ||
types: | ||
- checks_requested | ||
|
||
env: | ||
GHJK_VERSION: "0.2.0" | ||
DENO_VERSION: "1.43.6" | ||
RUST_BACKTRACE: "full" | ||
RUST_LOG: "info,swc_ecma_codegen=off,tracing::span=off" | ||
DENO_DIR: deno-dir | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
website: | ||
- '.github/workflows/tests.yml' | ||
- 'website/**' | ||
meta-cli: | ||
- '.github/workflows/tests.yml' | ||
- 'libs/**' | ||
- 'meta-cli/**' | ||
- 'Cargo.lock' | ||
typegate: | ||
- '.github/workflows/tests.yml' | ||
- 'libs/**' | ||
- 'typegate/**' | ||
- 'meta-cli/**' | ||
- 'Cargo.lock' | ||
full: | ||
- '.github/workflows/tests.yml' | ||
- 'libs/**' | ||
- 'typegate/**' | ||
- 'typegraph/**' | ||
- 'meta-cli/**' | ||
- 'Cargo.lock' | ||
- 'examples/**' | ||
rust: | ||
- '.github/workflows/tests.yml' | ||
- 'libs/**' | ||
- 'Cargo.lock' | ||
outputs: | ||
website: ${{ steps.filter.outputs.website }} | ||
meta-cli: ${{ steps.filter.outputs.meta-cli }} | ||
typegate: ${{ steps.filter.outputs.typegate }} | ||
full: ${{ steps.filter.outputs.full }} | ||
rust: ${{ steps.filter.outputs.rust }} | ||
|
||
|
||
test-meta-cli-compat: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.meta-cli == 'true' }} | ||
runs-on: "${{ matrix.os }}" | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-13 | ||
activate: "source .venv/bin/activate" | ||
- os: macos-14 | ||
activate: "source .venv/bin/activate" | ||
#- os: windows-latest | ||
# activate: '.venv\Scripts\activate.bat' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Cache deno dir | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.DENO_DIR }} | ||
key: deno-mac-${{ hashFiles('**/deno.lock') }} | ||
- uses: dsherret/rust-toolchain-file@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: ${{ runner.os }}-rust-${{ hashFiles('**/rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cache .venv dir | ||
uses: actions/cache@v4 | ||
with: | ||
path: .venv | ||
key: ${{ matrix.os }}-venv-${{ hashFiles('**/poetry.lock', '.ghjk/lock.json') }} | ||
- uses: metatypedev/setup-ghjk@318209a9d215f70716a4ac89dbeb9653a2deb8bc | ||
with: | ||
# temporary fix | ||
cache-key-prefix: ${{ matrix.os }} | ||
- shell: bash | ||
env: | ||
WASM_FILE: target/debug/typegraph_core.wasm | ||
run: | | ||
python3 -m venv .venv | ||
${{ matrix.activate }} | ||
cd typegraph/python | ||
poetry install --no-root | ||
cd ../.. | ||
poetry install --no-root | ||
deno cache --import-map typegate/import_map.json typegate/src/main.ts typegate/tests/utils/mod.ts | ||
cargo build -p typegraph_core --target wasm32-unknown-unknown --target-dir target/wasm | ||
mkdir -p $(dirname $WASM_FILE) | ||
wasm-opt -Oz target/wasm/wasm32-unknown-unknown/debug/typegraph_core.wasm -o $WASM_FILE.opt | ||
wasm-tools component new $WASM_FILE.opt -o $WASM_FILE | ||
rm -rf typegraph/python/typegraph/gen | ||
poetry run python -m wasmtime.bindgen $WASM_FILE --out-dir typegraph/python/typegraph/gen | ||
cargo run --locked --package meta-cli -- --help | ||
cargo test --locked --package meta-cli | ||
# check the fat CLI build | ||
cargo run --locked --package meta-cli --features typegate -- --help |
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
Oops, something went wrong.