π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add lint workflows for ensu web and desktop
Prateek Sunal0ecbe58d93eb
diff --git a/.github/workflows/ensu-desktop-lint.yml b/.github/workflows/ensu-desktop-lint.ymlnew file mode 100644index 0000000000..48a9e3e4e3--- /dev/null+++ b/.github/workflows/ensu-desktop-lint.yml@@ -0,0 +1,59 @@+name: "Lint (ensu desktop)"++on:+ # Run on every pull request (open or push to it) that changes ensu desktop+ pull_request:+ paths:+ - "rust/apps/ensu/**"+ - "rust/core/**"+ - "rust/ensu/**"+ - ".github/workflows/ensu-desktop-lint.yml"++permissions:+ contents: read++# Cancel in-progress lint runs when a new commit is pushed.+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true++env:+ RUSTFLAGS: -D warnings++jobs:+ lint:+ runs-on: ubuntu-22.04+ defaults:+ run:+ working-directory: rust/apps/ensu/src-tauri+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Cache+ uses: actions/cache@v4+ with:+ path: |+ ~/.cargo/registry+ ~/.cargo/git+ rust/apps/ensu/src-tauri/target+ key: ${{ runner.os }}-cargo-ensu-desktop-${{ hashFiles('rust/apps/ensu/src-tauri/Cargo.lock') }}++ - name: Install system dependencies+ run: |+ sudo apt-get update+ sudo apt-get install -y libwebkit2gtk-4.0-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev++ - name: Fetch Rust dependencies+ run: cargo fetch++ - name: Patch llama.cpp mtmd sources+ shell: bash+ working-directory: .+ run: rust/ensu/inference/tool/patch_llama_mtmd.sh++ - run: cargo fmt --check++ - run: cargo clippy --all-targets --all-features++ - run: cargo builddiff --git a/.github/workflows/ensu-web-lint.yml b/.github/workflows/ensu-web-lint.ymlnew file mode 100644index 0000000000..7b7ed4ca04--- /dev/null+++ b/.github/workflows/ensu-web-lint.yml@@ -0,0 +1,53 @@+name: "Lint (ensu web)"++on:+ # Run on every pull request (open or push to it) that changes ensu web app+ pull_request:+ paths:+ - "web/apps/ensu/**"+ - "web/packages/**"+ - "rust/core/**"+ - ".github/workflows/ensu-web-lint.yml"++permissions:+ contents: read++# Cancel in-progress lint runs when a new commit is pushed.+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true++jobs:+ lint:+ runs-on: ubuntu-latest+ defaults:+ run:+ working-directory: web+ steps:+ - name: Checkout code+ uses: actions/checkout@v4+ with:+ persist-credentials: false++ - name: Setup node and enable yarn caching+ uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: "yarn"+ cache-dependency-path: "web/yarn.lock"++ - run: yarn install --frozen-lockfile++ - run: yarn build:wasm++ - run: yarn lint++ - run: yarn test:run++ - name: Audit dependencies+ run: |+ yarn audit --level critical || exit_code=$?+ if [[ $exit_code -ge 16 ]]; then+ echo "::error::Yarn audit found critical issues"+ exit 1+ fi