Skip to content

Commit

Permalink
Merge branch 'import-artifact' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
inverted-capital committed Oct 24, 2024
2 parents 735c173 + 5b508ff commit a4840ef
Show file tree
Hide file tree
Showing 138 changed files with 36,031 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _import-artifact/.gitattributes
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
11 changes: 11 additions & 0 deletions _import-artifact/.github/codecov.yml
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'
7 changes: 7 additions & 0 deletions _import-artifact/.github/dependabot.yml
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'
2 changes: 2 additions & 0 deletions _import-artifact/.github/typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["__snapshots__"]
94 changes: 94 additions & 0 deletions _import-artifact/.github/workflows/ci.yml
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

11 changes: 11 additions & 0 deletions _import-artifact/.gitignore
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/
3 changes: 3 additions & 0 deletions _import-artifact/.gitmodules
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
7 changes: 7 additions & 0 deletions _import-artifact/.vscode/extensions.json
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"
]
}
90 changes: 90 additions & 0 deletions _import-artifact/.vscode/launch.json
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"
}
]
}
27 changes: 27 additions & 0 deletions _import-artifact/.vscode/settings.json
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"
}
}
1 change: 1 addition & 0 deletions _import-artifact/HAL
Submodule HAL added at abef8f
Loading

0 comments on commit a4840ef

Please sign in to comment.