Document not found (404)
-This URL is invalid, sorry. Please use the navigation bar or search to continue.
- -diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..62ade45 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,30 @@ +name: Deploy docs to GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Install mdBook + run: cargo install mdbook + - name: Build mdBook + run: mdbook build docs + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/book + publish_branch: gh-pages + keep_files: false + diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..bff1271 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,42 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' + + - name: Build + working-directory: ./go + run: go build -v ./... + + - name: Test + working-directory: ./go + run: go test -v ./... + + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.54 + working-directory: ./go diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 0000000..67e5403 --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,25 @@ +name: Python Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + pip install -e ./python + pip install pytest pytest-xdist + + - name: Run Python tests + run: | + cd tests + pytest --adapters adapters/python + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..26f1aa7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ + +name: Release + +on: + workflow_dispatch: + +jobs: + build: + name: Build on ${{ matrix.os }} for ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + arch: [amd64, arm64] + include: + - os: ubuntu-latest + arch: arm64 + target: aarch64-unknown-linux-gnu + - os: macos-latest + arch: arm64 + target: aarch64-apple-darwin + exclude: + - os: windows-latest + arch: arm64 + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Dependencies (Ubuntu) + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install pkg-config libssl-dev + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + target: ${{ matrix.target }} + + - name: Build Binary + run: | + cd rust + cargo build --release --target ${{ matrix.target }} --path crates/mesc_cli + + - name: Publish Release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 + with: + files: | + rust/target/${{ matrix.target }}/release/mesc_cli* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml new file mode 100644 index 0000000..d058692 --- /dev/null +++ b/.github/workflows/rust-tests.yml @@ -0,0 +1,36 @@ +name: Rust Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust artifacts + uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + workspaces: rust + + - name: Build and Install Rust Project + run: cargo install --path rust/crates/mesc_cli --profile dev + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' # Specify your required Python version + + - name: Install Python dependencies for testing + run: | + pip install pytest pytest-xdist + + - name: Run Rust tests + run: | + cd tests + pytest --adapters adapters/cli diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml new file mode 100644 index 0000000..7630e50 --- /dev/null +++ b/.github/workflows/typescript.yml @@ -0,0 +1,46 @@ +name: TypeScript + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +defaults: + run: + working-directory: typescript + +env: + # enable debug logging + ACTIONS_RUNNER_DEBUG: true + +jobs: + build-lint-test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: typescript + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Lint, Format, & Typecheck + working-directory: typescript + run: | + bun run lint + bun run format + bun run typecheck + + - name: Build + run: bun run build + + - name: Test + run: bun run test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b55d9e --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +target +/target +TODO.md +INTEGRATION.md +PITCH.md +*.json +!biome.json +__pycache__ +python/dist +docs/book +*.gif +node_modules +dist +.env +!.env.example +_ \ No newline at end of file diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index f173110..0000000 --- a/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/404.html b/404.html deleted file mode 100644 index a714592..0000000 --- a/404.html +++ /dev/null @@ -1,221 +0,0 @@ - - -
- - -This URL is invalid, sorry. Please use the navigation bar or search to continue.
- -