forked from denoland/std
-
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 branch 'import-artifact' into next
- Loading branch information
Showing
138 changed files
with
36,031 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Use Unix line endings in all text files. | ||
* text=auto eol=lf |
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,11 @@ | ||
comment: false | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
informational: true | ||
patch: | ||
default: | ||
informational: true | ||
ignore: | ||
- '**/*.tsx' |
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 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: 'weekly' |
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,2 @@ | ||
[files] | ||
extend-exclude = ["__snapshots__"] |
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,94 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main, next] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
ci: | ||
permissions: | ||
id-token: write | ||
# contents permission to update benchmark contents in gh-pages branch | ||
# without benchmarks, would only need read permission | ||
contents: write | ||
# deployments permission to deploy GitHub pages website | ||
deployments: write | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macOS-latest | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache | ||
~/.cache/deno | ||
key: ${{ runner.os }}-deno-${{ hashFiles('deno.json') }} | ||
|
||
- name: Check typos | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: crate-ci/typos@master | ||
with: | ||
config: ./.github/typos.toml | ||
|
||
- name: Check formatting, linting, and types | ||
run: deno task check | ||
|
||
- name: Test | ||
run: deno task test | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
|
||
|
||
- name: Create lcov file | ||
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' | ||
run: deno task cov:gen | ||
|
||
- name: Upload coverage | ||
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
name: ${{ matrix.os }} | ||
files: cov.lcov | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: dreamcatcher-tech/artifact | ||
|
||
- name: Run benchmark | ||
if: matrix.os == 'ubuntu-latest' | ||
run: deno task bench | tee output.txt | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
|
||
- name: Store benchmark result | ||
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest' | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
name: Artifact Benchmarks | ||
tool: 'benchmarkjs' | ||
output-file-path: output.txt | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
auto-push: true | ||
# Show alert with commit comment on detecting possible performance regression | ||
alert-threshold: '200%' | ||
comment-on-alert: true | ||
fail-on-alert: true | ||
|
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,11 @@ | ||
.env | ||
*.DS_Store | ||
cov/ | ||
cov.lcov | ||
.idea | ||
_fresh/ | ||
backup.json | ||
html_cov/ | ||
coverage/ | ||
node_modules/ | ||
tmp/ |
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,3 @@ | ||
[submodule "HAL"] | ||
path = _import-artifact/HAL | ||
url = [email protected]:dreamcatcher-tech/HAL.git |
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 @@ | ||
{ | ||
"recommendations": [ | ||
"denoland.vscode-deno", | ||
"ryanluker.vscode-coverage-gutters", | ||
"dotenv.dotenv-vscode" | ||
] | ||
} |
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,90 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"request": "launch", | ||
"name": "Serve", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": ["task", "api"], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"request": "launch", | ||
"name": "io", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": ["task", "watch", "--inspect-wait", "io/io.test.ts"], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"request": "launch", | ||
"name": "longthread", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": [ | ||
"task", | ||
"watch", | ||
"--inspect-wait", | ||
"isolates/longthread.test.ts" | ||
], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"request": "launch", | ||
"name": "FS", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": ["task", "watch", "--inspect-wait", "git/fs.test.ts"], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"request": "launch", | ||
"name": "Engine", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": ["task", "watch", "--inspect-wait", "engine.test.ts"], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"request": "launch", | ||
"name": "Cloud", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": ["task", "tc", "--watch", "--inspect-wait"], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
}, | ||
{ | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"type": "node", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeExecutable": "~/.deno/bin/deno", | ||
"runtimeArgs": ["task", "watch", "--inspect-wait", "${relativeFile}"], | ||
"attachSimplePort": 9229, | ||
"internalConsoleOptions": "neverOpen", | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
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,27 @@ | ||
{ | ||
"deno.enable": true, | ||
"deno.lint": true, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "denoland.vscode-deno", | ||
"deno.cacheOnSave": true, | ||
"deno.codeLens.references": false, | ||
"deno.codeLens.implementations": false, | ||
"deno.codeLens.referencesAllFunctions": true, | ||
"deno.codeLens.test": true, | ||
"deno.testing.args": ["--allow-all", "--no-check", "--unstable-kv"], | ||
"deno.codeLens.testArgs": ["--allow-all", "--no-check", "--unstable-kv"], | ||
"coverage-gutters.coverageFileNames": [ | ||
"cov.lcov", | ||
"lcov.info", | ||
"cov.xml", | ||
"coverage.xml", | ||
"jacoco.xml", | ||
"coverage.cobertura.xml" | ||
], | ||
"coverage-gutters.showLineCoverage": true, | ||
"coverage-gutters.showRulerCoverage": false, | ||
"coverage-gutters.showGutterCoverage": false, | ||
"[markdown]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
} |
Submodule HAL
added at
abef8f
Oops, something went wrong.