Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mvp #1

Merged
merged 45 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6a7c25a
wip: docker based suite
Yohe-Am Nov 8, 2023
b2459ac
Merge branch 'main' into feat/mvp
Yohe-Am Nov 9, 2023
058a964
wip: worker based plugins
Yohe-Am Nov 9, 2023
40da885
wip: installation
Yohe-Am Nov 12, 2023
98fea71
wip: shimmy shim shim
Yohe-Am Nov 16, 2023
084d519
feat: ambient access plugs
Yohe-Am Nov 17, 2023
40c106a
feat: plugin deps
Yohe-Am Nov 19, 2023
5bf620f
feat: wasmedge, lib/include shims support and globs
Yohe-Am Nov 22, 2023
7cf84cb
feat(plug): pnpm
Yohe-Am Nov 22, 2023
88f1993
feat(plug): cargo-instal and wasm-tools
Yohe-Am Nov 23, 2023
4dd100b
feat(plug): wasm-opt & cargo-insta
Yohe-Am Nov 23, 2023
56657b7
feat(ci): e2e tests and some new plugs
Yohe-Am Nov 24, 2023
f9573b1
Merge branch 'main' into feat/mvp
Yohe-Am Nov 24, 2023
10b1108
wip: asdf plug support
Yohe-Am Nov 24, 2023
612731c
fix: missing changes
Yohe-Am Nov 24, 2023
97d1c6f
feat(core): asdf support
Yohe-Am Nov 24, 2023
411ee78
fix: formatting
Yohe-Am Nov 24, 2023
1b8bcfb
fix(tests): disable asdf-python
Yohe-Am Nov 24, 2023
e52fbcf
feat(plug): protoc
Yohe-Am Nov 26, 2023
4ee2592
feat(tests): `protoc`
Yohe-Am Nov 26, 2023
627e3d4
refactor(hooks): move to bash-preexec
Yohe-Am Nov 27, 2023
b3fd19f
fix(hooks): `init_ghjk` directly in hooks.sh
Yohe-Am Nov 27, 2023
eee3a6d
feat(plug): earthly
Yohe-Am Nov 27, 2023
915abbc
fix: change installId format to something less problematic
Yohe-Am Nov 28, 2023
6fe347e
feat(plug): ruff
Yohe-Am Nov 28, 2023
0a90307
feat(plug): whiz
Yohe-Am Nov 30, 2023
08b4c36
refactor: native js `unarchive`
Yohe-Am Nov 30, 2023
f21dafb
fix: use zipjs
Yohe-Am Nov 30, 2023
0b0fb49
fix: better `unarchive`
Yohe-Am Nov 30, 2023
74d44a6
fix: get tests working
Yohe-Am Nov 30, 2023
237c057
fix: address feedback
Yohe-Am Nov 30, 2023
5e19714
fix: remove dead code
Yohe-Am Nov 30, 2023
f95a1bc
refactor: `install.ts` -> `setup.ts`
Yohe-Am Dec 1, 2023
d7511a6
refactor: `setup.ts` -> `init.ts`
Yohe-Am Dec 1, 2023
f06ec82
wip: `modules`
Yohe-Am Dec 1, 2023
da08af2
wip: `plugs` -> `ports`
Yohe-Am Dec 1, 2023
324906d
refactor: big un
Yohe-Am Dec 2, 2023
fb7d8e0
fix: apply feedback
Yohe-Am Dec 4, 2023
cbb0f39
fix: pin debian pkg versions for test dockerfile
Yohe-Am Dec 4, 2023
1c818e0
fix: back to aliases and zsh support
Yohe-Am Dec 4, 2023
9dc062c
refactor(hooks): explicit bash command
Yohe-Am Dec 4, 2023
fe0e00b
feat(ci): ghjk action
Yohe-Am Dec 5, 2023
56de32f
fix(ci): missing shell prop
Yohe-Am Dec 5, 2023
fa8e79a
fix(action): improve outputs
Yohe-Am Dec 5, 2023
278beb1
refactor: make hooks more efficient
Yohe-Am Dec 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.vscode
tests/
*.md
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!--
Pull requests are squash merged using:
- their title as the commit message
Yohe-Am marked this conversation as resolved.
Show resolved Hide resolved
- 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.
-->

### Describe your change

<!-- Explain WHAT the change is -->

### Motivation and context

<!-- Explain WHY the was made or link an issue number -->

### Migration notes

<!-- Explain HOW users should update their code when required -->

### Checklist

- [ ] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
19 changes: 19 additions & 0 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
schedule:
- cron: "0 2 1 * *"
workflow_dispatch:

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: browniebroke/pre-commit-autoupdate-action@main
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
commit-message: "chore: update pre-commit hooks"
body: Update versions of pre-commit hooks to latest version.
15 changes: 15 additions & 0 deletions .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- ready_for_review

jobs:
check:
Yohe-Am marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- ready_for_review

env:
DENO_VERSION: "1.38.2"

jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4

test-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: pre-commit/[email protected]

test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: docker/setup-buildx-action@v3
- uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
- run: deno task test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
play.ts
113 changes: 9 additions & 104 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,133 +13,38 @@ repos:
- id: check-merge-conflict
- id: end-of-file-fixer
# exclude all generated files
exclude: (typegate/deno.lock|.*\.snap$|typegate/src/typegraphs/.*\.json|website/docs/reference/)
exclude: (deno.lock)
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.292"
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.10.0
hooks:
- id: commitizen
stages:
- commit-msg
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
args:
- "--locked"
- id: clippy
args:
- "--locked"
- "--"
- "--deny"
- "warnings"
- repo: local
hooks:
- id: deno-fmt
name: Deno format
language: system
entry: bash -c 'cd typegate && deno fmt --ignore=native,src/typegraphs,tmp && cd ../dev && deno fmt'
entry: bash -c 'deno fmt'
pass_filenames: false
types:
- ts
files: ^(typegate|dev)/
- id: deno-lint
name: Deno lint
- id: deno-check
name: Deno check
language: system
entry: bash -c 'cd typegate && deno lint --rules-exclude=no-explicit-any --ignore=native,tmp && cd ../dev && deno lint'
entry: bash -c 'deno task check'
pass_filenames: false
types:
- ts
files: ^(typegate|dev)/
- id: es-lint
name: Eslint
language: system
entry: bash -c 'cd website && [ -f node_modules/.bin/eslint ] && pnpm lint'
pass_filenames: false
types_or:
- ts
- tsx
files: ^website/
- id: version
name: "Lock versions"
always_run: true
Yohe-Am marked this conversation as resolved.
Show resolved Hide resolved
- id: deno-lint
name: Deno lint
language: system
entry: bash -c 'deno run -A dev/lock.ts --check'
entry: bash -c 'deno task lint'
pass_filenames: false
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
name: "License MPL-2.0 python"
args:
#- --remove-header
- --license-filepath=dev/license-header-MPL-2.0.txt
- "--comment-style=#"
- "--skip-license-insertion-comment=no-auto-license-header"
types_or:
- python
files: ^typegraph/
- id: insert-license
name: "License Elastic-2.0 rust"
args:
#- --remove-header
- --license-filepath=dev/license-header-Elastic-2.0.txt
- "--comment-style=//"
- "--skip-license-insertion-comment=no-auto-license-header"
types_or:
- rust
files: ^(typegate|libs)/
- id: insert-license
name: "License MPL-2.0 rust"
args:
#- --remove-header
- --license-filepath=dev/license-header-MPL-2.0.txt
- "--comment-style=//"
- "--skip-license-insertion-comment=no-auto-license-header"
types_or:
- rust
files: ^(meta-cli|typegraph)/
- id: insert-license
name: "License Elastic-2.0 deno"
args:
#- --remove-header
- --license-filepath=dev/license-header-Elastic-2.0.txt
- "--comment-style=//"
- "--skip-license-insertion-comment=no-auto-license-header"
types_or:
- ts
files: ^(typegate|dev)/
- id: insert-license
name: "License MPL-2.0 deno"
args:
#- --remove-header
- --license-filepath=dev/license-header-MPL-2.0.txt
- "--comment-style=//"
- "--skip-license-insertion-comment=no-auto-license-header"
types_or:
- ts
files: ^typegraph/
- id: insert-license
name: "License Elastic-2.0 typescript"
args:
#- --remove-header
- --license-filepath=dev/license-header-Elastic-2.0.txt
- "--comment-style=//"
- "--skip-license-insertion-comment=no-auto-license-header"
types_or:
types:
- ts
- tsx
files: ^website/
9 changes: 6 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"deno.enablePaths": [
".",
"."
],
"deno.suggest.completeFunctionCalls": true,
"deno.inlayHints.variableTypes.enabled": true,
Expand All @@ -16,5 +16,8 @@
"deno.codeLens.referencesAllFunctions": true,
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
},
"cSpell.words": [
"ghjk"
]
}
Loading
Loading