diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0a60593c..7dd010a0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,9 +7,36 @@ on: pull_request: jobs: + docs: + name: Check Docs + runs-on: ubuntu-latest + if: github.repository_owner == 'wg-easy' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + check-latest: true + cache: "pnpm" + + - name: Check docs formatting + run: | + pnpm install + pnpm format:check:docs + lint: name: Lint runs-on: ubuntu-latest + needs: docs if: github.repository_owner == 'wg-easy' strategy: @@ -34,10 +61,6 @@ jobs: check-latest: true cache: "pnpm" - - name: Chec docs formatting - run: | - pnpm format:check:docs - - name: pnpm ${{ matrix.command }} run: | cd src diff --git a/docs/content/guides/clients.md b/docs/content/guides/clients.md index 7d730f1b..973be689 100644 --- a/docs/content/guides/clients.md +++ b/docs/content/guides/clients.md @@ -17,7 +17,7 @@ title: Edit Client Which IPs will be routed through the VPN. -This will not prevent the user from modifing it locally and accessing IP ranges that they should not be able to access. +This will not prevent the user from modifying it locally and accessing IP ranges that they should not be able to access. Use firewall rules to prevent access to IP ranges that the user should not be able to access.