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

Folder cleanup #180

Merged
merged 11 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions .github/workflows/ci-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- ".github/workflows/ci.yml"
- "crates/**/*.rs"
- "!crates/devtools/**/*.rs"
- "tauri-v1/**/*.rs"
- "crates/devtools-v1/**/*.rs"
- "crates/wire/proto/*.proto"
- "**/Cargo.toml"
pull_request:
paths:
- ".github/workflows/ci.yml"
- "crates/**/*.rs"
- "!crates/devtools/**/*.rs"
- "tauri-v1/**/*.rs"
- "crates/devtools-v1/**/*.rs"
- "crates/wire/proto/*.proto"
- "**/Cargo.toml"

Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
with:
toolchain: ${{matrix.rust}}
- uses: Swatinem/rust-cache@v2
- run: cargo test --manifest-path tauri-v1/devtools/Cargo.toml
- run: cargo test --manifest-path crates/devtools-v1/Cargo.toml
env:
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}

Expand All @@ -72,7 +72,7 @@ jobs:
with:
toolchain: 1.70.0 # MSRV
- uses: Swatinem/rust-cache@v2
- run: cargo check --manifest-path tauri-v1/devtools/Cargo.toml --tests
- run: cargo check --manifest-path crates/devtools-v1/Cargo.toml --tests

clippy:
name: Clippy
Expand All @@ -89,7 +89,7 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --manifest-path tauri-v1/devtools/Cargo.toml -- -Dclippy::all -Dclippy::pedantic
- run: cargo clippy --manifest-path crates/devtools-v1/Cargo.toml -- -Dclippy::all -Dclippy::pedantic

rustfmt:
name: Rustfmt
Expand All @@ -102,7 +102,7 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --manifest-path tauri-v1/devtools/Cargo.toml -- --check
- run: cargo fmt --manifest-path crates/devtools-v1/Cargo.toml -- --check

check-licenses:
runs-on: ubuntu-latest
Expand All @@ -111,7 +111,7 @@ jobs:
- name: Check Rust Licenses
uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --manifest-path tauri-v1/devtools/Cargo.toml
arguments: --manifest-path crates/devtools-v1/Cargo.toml

# outdated:
# name: Outdated
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: 'web-client/pnpm-lock.yaml'
cache-dependency-path: 'clients/web/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install -g license-checker
- name: Check JavaScript Licenses
working-directory: web-client
working-directory: clients/web
run: license-checker --summary --onlyAllow="MIT;Apache-2.0;BSD-2-Clause" --excludePackages="[email protected]"
- name: Check Rust Licenses
uses: EmbarkStudios/cargo-deny-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Run release-plz (devtools for Tauri v1)
uses: MarcoIeni/[email protected]
with:
project_manifest: tauri-v1/devtools/Cargo.toml
project_manifest: crates/devtools-v1/Cargo.toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
14 changes: 7 additions & 7 deletions .github/workflows/wc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- main
paths:
- ".github/workflows/ci.yml"
- "web-client/**"
- "clients/web/**"
pull_request:
paths:
- ".github/workflows/ci.yml"
- "web-client/**"
- "clients/web/**"

jobs:
test:
Expand All @@ -25,20 +25,20 @@ jobs:
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "web-client/pnpm-lock.yaml"
cache-dependency-path: "clients/web/pnpm-lock.yaml"

- name: Install dependencies
working-directory: web-client
working-directory: clients/web
run: pnpm install install

- name: Format
working-directory: web-client
working-directory: clients/web
run: pnpm prettier --check '**/*.{ts,tsx,js,jsx,json}'

- name: Linting
working-directory: web-client
working-directory: clients/web
run: pnpm lint

- name: Unit tests
working-directory: web-client
working-directory: clients/web
run: pnpm test -- --run
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion web-client/package.json → clients/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "PolyForm-Noncommercial-1.0.0",
"author": "CrabNebula <[email protected]>",
"scripts": {
"proto": "protoc --ts_out src/lib/proto --proto_path ../crates/wire/proto ../crates/wire/proto/common.proto ../crates/wire/proto/instrument.proto ../crates/wire/proto/logs.proto ../crates/wire/proto/spans.proto ../crates/wire/proto/tauri.proto ../crates/wire/proto/sources.proto ../crates/wire/proto/meta.proto ../crates/wire/proto/health.proto",
"proto": "protoc --ts_out src/lib/proto --proto_path ../../crates/wire/proto ../../crates/wire/proto/common.proto ../../crates/wire/proto/instrument.proto ../../crates/wire/proto/logs.proto ../../crates/wire/proto/spans.proto ../../crates/wire/proto/tauri.proto ../../crates/wire/proto/sources.proto ../../crates/wire/proto/meta.proto ../../crates/wire/proto/health.proto",
"dev": "pnpm proto && vite",
"build": "pnpm proto && vite build",
"preview": "pnpm proto && vite preview",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.