Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[docs][actions] add lint checks for PRs

Keerthana2d6c754c15bc
diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml
new file mode 100644
index 0000000000..f227f2115b
--- /dev/null
+++ b/.github/workflows/docs-lint.yml
@@ -0,0 +1,32 @@
+name: "Lint (docs)"
+
+on:
+ # Run on every pull request (open or push to it) that changes docs/
+ pull_request:
+ paths:
+ - "docs/**"
+ - ".github/workflows/docs-lint.yml"
+
+permissions:
+ contents: read
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: docs
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - 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
+
+ - run: yarn pretty:check